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