1 write to TypedMap
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
881TypedMap = map;
26 references to TypedMap
Microsoft.ML.Data (26)
Transforms\ValueToKeyMappingTransformerImpl.cs (26)
907ValueMapper<T, uint> map = TypedMap.GetKeyMapper(); 929ValueMapper<T, uint> map = TypedMap.GetKeyMapper(); 1045if (TypedMap.Count == 0) 1047if (IsTextMetadata && !(TypedMap.ItemType is TextDataViewType)) 1050var stringMapper = conv.GetStringConversion<T>(TypedMap.ItemType); 1057TypedMap.GetTerms(ref dstT); 1060builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TextDataViewType.Instance, getter); 1067TypedMap.GetTerms(ref dst); 1069builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TypedMap.ItemType, getter); 1089_host.Assert(TypedMap.ItemType is KeyDataViewType); 1094if (TypedMap.Count == 0) 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; 1131TypedMap.GetTerms(ref keyVals); 1132var editor = VBufferEditor.Create(ref dst, TypedMap.OutputType.GetCountAsInt32(_host)); 1145int keyCount = TypedMap.OutputType.GetCountAsInt32(_host); 1175if (TypedMap.Count == 0) 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; 1209TypedMap.GetTerms(ref keyVals); 1213var keyStringMapper = convInst.GetStringConversion<T>(TypedMap.ItemType); 1217TypedMap.ItemType, srcMetaType, TypedMap.Count);