1 type derived from TermMap
Microsoft.ML.Data (1)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
762internal abstract class TermMap<T> : TermMap
31 references to TermMap
Microsoft.ML.Data (31)
Transforms\ValueToKeyMappingTransformer.cs (13)
208private readonly TermMap[] _unboundMaps; 330var termMap = new TermMap[columnsLength]; 347termMap[i] = TermMap.Load(c, host, CodecFactory); 352termMap[i] = TermMap.TextImpl.Create(c, host); 465/// Utility method to create the file-based <see cref="TermMap"/>. 467private static TermMap CreateTermMapFromData(IHostEnvironment env, IChannel ch, IDataView keyData, bool autoConvert, Builder bldr) 512/// This builds the <see cref="TermMap"/> instances per column. 514private static TermMap[] Train(IHostEnvironment env, IChannel ch, ColInfo[] infos, 524TermMap termsFromFile = null; 525var termMap = new TermMap[infos.Length]; 680foreach (var term in _unboundMaps) 686foreach (var map in _unboundMaps) 693internal TermMap GetTermMap(int iinfo)
Transforms\ValueToKeyMappingTransformerImpl.cs (18)
19/// to accumulate individual scalar objects, and facilitate the creation of a <see cref="TermMap"/>. 78public abstract TermMap Finish(); 119public override TermMap Finish() 122return new TermMap.TextImpl(_pool); 136return new TermMap.TextImpl(sortedPool); 180public override TermMap Finish() 184return new TermMap.HashArrayImpl<T>(ItemType, _values); 336/// Returns a <see cref="TermMap"/> over the items in this column. Note that even if this 340public TermMap Finish() 452private static BoundTermMap Bind(IHostEnvironment env, DataViewSchema schema, TermMap unbound, ColInfo[] infos, bool[] textMetadata, int iinfo) 512internal static TermMap Load(ModelLoadContext ctx, IHostEnvironment ectx, CodecFactory codecFactory) 543private static TermMap LoadCodecCore<T>(ModelLoadContext ctx, IExceptionContext ectx, IValueCodec codec, int count) 803/// a <see cref="TermMap"/>, and facilitate mapping that object to the inputs of 808public readonly TermMap Map; 819private BoundTermMap(IHostEnvironment env, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo) 836public static BoundTermMap Create(IHostEnvironment host, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo) 846public static BoundTermMap CreateCore<T>(IHostEnvironment env, DataViewSchema schema, TermMap map, ColInfo[] infos, bool[] textMetadata, int iinfo) 866/// all term maps. We should write <see cref="TermMap.Count"/> terms.