1 write to TypedMap
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
881
TypedMap
= map;
26 references to TypedMap
Microsoft.ML.Data (26)
Transforms\ValueToKeyMappingTransformerImpl.cs (26)
907
ValueMapper<T, uint> map =
TypedMap
.GetKeyMapper();
929
ValueMapper<T, uint> map =
TypedMap
.GetKeyMapper();
1045
if (
TypedMap
.Count == 0)
1047
if (IsTextMetadata && !(
TypedMap
.ItemType is TextDataViewType))
1050
var stringMapper = conv.GetStringConversion<T>(
TypedMap
.ItemType);
1057
TypedMap
.GetTerms(ref dstT);
1060
builder.AddKeyValues(
TypedMap
.OutputType.GetCountAsInt32(_host), TextDataViewType.Instance, getter);
1067
TypedMap
.GetTerms(ref dst);
1069
builder.AddKeyValues(
TypedMap
.OutputType.GetCountAsInt32(_host),
TypedMap
.ItemType, getter);
1089
_host.Assert(
TypedMap
.ItemType is KeyDataViewType);
1094
if (
TypedMap
.Count == 0)
1099
if (srcMetaType == null || srcMetaType.Size !=
TypedMap
.ItemType.GetKeyCountAsInt32(_host) ||
1100
TypedMap
.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_addMetadataCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, builder))
1112
var srcType =
TypedMap
.ItemType as KeyDataViewType;
1131
TypedMap
.GetTerms(ref keyVals);
1132
var editor = VBufferEditor.Create(ref dst,
TypedMap
.OutputType.GetCountAsInt32(_host));
1145
int keyCount =
TypedMap
.OutputType.GetCountAsInt32(_host);
1175
if (
TypedMap
.Count == 0)
1180
if (srcMetaType == null || srcMetaType.Size !=
TypedMap
.ItemType.GetKeyCountAsInt32(_host) ||
1181
TypedMap
.ItemType.GetKeyCountAsInt32(_host) == 0 || !Utils.MarshalInvoke(_writeTextTermsCoreMethodInfo, this, srcMetaType.ItemType.RawType, srcMetaType.ItemType, writer))
1192
var srcType =
TypedMap
.ItemType as KeyDataViewType;
1209
TypedMap
.GetTerms(ref keyVals);
1213
var keyStringMapper = convInst.GetStringConversion<T>(
TypedMap
.ItemType);
1217
TypedMap
.ItemType, srcMetaType,
TypedMap
.Count);