1 write to ItemType
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
39ItemType = type;
13 references to ItemType
Microsoft.ML.Data (13)
Transforms\ValueToKeyMappingTransformer.cs (2)
480if (!autoConvert && !typeSrc.Equals(bldr.ItemType)) 481throw ch.ExceptUserArg(nameof(keyData), "Input data's column must be of type '{0}' but was '{1}'", bldr.ItemType, typeSrc);
Transforms\ValueToKeyMappingTransformerImpl.cs (11)
184return new TermMap.HashArrayImpl<T>(ItemType, _values); 210var tryParse = Data.Conversion.Conversions.DefaultInstance.GetTryParseConversion<T>(ItemType); 219throw ch.Except($"Item '{term}' in 'terms' specification could not be parsed as '{ItemType}'"); 225throw ch.ExceptUserArg(nameof(Options.Term), "Nothing parsed as '{0}'", ItemType); 236var tryParse = Data.Conversion.Conversions.DefaultInstance.GetTryParseConversion<T>(ItemType); 244ch.Warning("Item '{0}' ignored in 'term' specification since it could not be parsed as '{1}'", term, ItemType); 250throw ch.ExceptUserArg(nameof(Options.Term), "Nothing parsed as '{0}'", ItemType); 293Contracts.Assert(autoConvert || bldr.ItemType == type.GetItemType()); 297return Utils.MarshalInvoke(CreateVec<int>, bldr.ItemType.RawType, row, col, count, bldr); 298return Utils.MarshalInvoke(CreateOne<int>, bldr.ItemType.RawType, row, col, autoConvert, count, bldr); 310inputGetter = RowCursorUtils.GetGetterAs<T>(bldr.ItemType, row, col);