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