1 write to ItemType
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
505ItemType = type;
28 references to ItemType
Microsoft.ML.Data (28)
Transforms\ValueToKeyMappingTransformer.cs (3)
556if (!termsFromFile.ItemType.Equals(infos[iinfo].TypeSrc.GetItemType())) 564termsFromFile.ItemType, infos[iinfo].Name, infos[iinfo].TypeSrc.GetItemType()); 646ch.Assert(termMap.Zip(infos, (tm, info) => tm.ItemType.Equals(info.TypeSrc.GetItemType())).All(x => x));
Transforms\ValueToKeyMappingTransformerImpl.cs (25)
458if (!inType.Equals(unbound.ItemType)) 461unbound.ItemType, info.Name, inType); 468/// type. The input type, whatever it is, must have <see cref="ItemType"/> as its input item 701if (!codecFactory.TryGetCodec(ItemType, out codec)) 702throw host.Except("We do not know how to serialize terms of type '{0}'", ItemType); 704host.Assert(codec.Type.Equals(ItemType)); 749writer.WriteLine("# Number of terms of type '{0}' = {1}", ItemType, Count); 751var stringMapper = Data.Conversion.Conversions.DefaultInstance.GetStringConversion<T>(ItemType); 767Contracts.Assert(ItemType.RawType == typeof(T)); 829_host.Assert(info.TypeSrc.GetItemType().Equals(map.ItemType)); 841host.Assert(info.TypeSrc.GetItemType().Equals(map.ItemType)); 843return Utils.MarshalInvoke(CreateCore<int>, map.ItemType.RawType, host, schema, map, infos, textMetadata, iinfo); 849if (mapT.ItemType is KeyDataViewType) 1047if (IsTextMetadata && !(TypedMap.ItemType is TextDataViewType)) 1050var stringMapper = conv.GetStringConversion<T>(TypedMap.ItemType); 1069builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TypedMap.ItemType, getter); 1089_host.Assert(TypedMap.ItemType is KeyDataViewType); 1099if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(_host) || 1100TypedMap.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_addMetadataCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, builder)) 1112var srcType = TypedMap.ItemType as KeyDataViewType; 1180if (srcMetaType == null || srcMetaType.Size != TypedMap.ItemType.GetKeyCountAsInt32(_host) || 1181TypedMap.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_writeTextTermsCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, writer)) 1192var srcType = TypedMap.ItemType as KeyDataViewType; 1213var keyStringMapper = convInst.GetStringConversion<T>(TypedMap.ItemType); 1217TypedMap.ItemType, srcMetaType, TypedMap.Count);