3 instantiations of ValueToKeyMappingTransformer
Microsoft.ML.Data (3)
Transforms\ValueToKeyMappingEstimator.cs (1)
172
public ValueToKeyMappingTransformer Fit(IDataView input) => new
ValueToKeyMappingTransformer
(_host, input, _columns, _keyData, false);
Transforms\ValueToKeyMappingTransformer.cs (2)
303
return new
ValueToKeyMappingTransformer
(env, input, cols, keyData, autoLoaded).MakeDataTransform(input);
316
return new
ValueToKeyMappingTransformer
(host, ctx);
59 references to ValueToKeyMappingTransformer
Microsoft.ML.Data (26)
Transforms\ColumnBindingsBase.cs (1)
317
Contracts.Assert(nameof(
ValueToKeyMappingTransformer
.Options.Columns) == standardColumnArgName);
Transforms\ValueToKeyMappingEstimator.cs (4)
14
/// <see cref="
ValueToKeyMappingTransformer
"/>. Converts a set of categorical
47
public sealed class ValueToKeyMappingEstimator : IEstimator<
ValueToKeyMappingTransformer
>
170
/// Trains and returns a <see cref="
ValueToKeyMappingTransformer
"/>.
172
public
ValueToKeyMappingTransformer
Fit(IDataView input) => new ValueToKeyMappingTransformer(_host, input, _columns, _keyData, false);
Transforms\ValueToKeyMappingTransformer.cs (20)
22
[assembly: LoadableClass(
ValueToKeyMappingTransformer
.Summary, typeof(IDataTransform), typeof(
ValueToKeyMappingTransformer
),
23
typeof(
ValueToKeyMappingTransformer
.Options), typeof(SignatureDataTransform),
24
ValueToKeyMappingTransformer
.UserName, "Term", "AutoLabel", "TermTransform", "AutoLabelTransform", DocName = "transform/TermTransform.md")]
26
[assembly: LoadableClass(
ValueToKeyMappingTransformer
.Summary, typeof(IDataTransform), typeof(
ValueToKeyMappingTransformer
), null, typeof(SignatureLoadDataTransform),
27
ValueToKeyMappingTransformer
.UserName,
ValueToKeyMappingTransformer
.LoaderSignature)]
29
[assembly: LoadableClass(
ValueToKeyMappingTransformer
.Summary, typeof(
ValueToKeyMappingTransformer
), null, typeof(SignatureLoadModel),
30
ValueToKeyMappingTransformer
.UserName,
ValueToKeyMappingTransformer
.LoaderSignature)]
32
[assembly: LoadableClass(typeof(IRowMapper), typeof(
ValueToKeyMappingTransformer
), null, typeof(SignatureLoadRowMapper),
33
ValueToKeyMappingTransformer
.UserName,
ValueToKeyMappingTransformer
.LoaderSignature)]
173
loaderAssemblyName: typeof(
ValueToKeyMappingTransformer
).Assembly.FullName);
205
loaderAssemblyName: typeof(
ValueToKeyMappingTransformer
).Assembly.FullName);
308
private static
ValueToKeyMappingTransformer
Create(IHostEnvironment env, ModelLoadContext ctx)
708
private readonly
ValueToKeyMappingTransformer
_parent;
716
public Mapper(
ValueToKeyMappingTransformer
parent, DataViewSchema inputSchema)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
472
/// Note that instances of this class can be shared among multiple <see cref="
ValueToKeyMappingTransformer
"/>
Microsoft.ML.EntryPoints (6)
FeatureCombiner.cs (6)
101
viewTrain =
ValueToKeyMappingTransformer
.Create(host,
102
new
ValueToKeyMappingTransformer
.Options()
105
.Select(c => new
ValueToKeyMappingTransformer
.Column() { Name = c.Name, Source = c.Name, Term = GetTerms(viewTrain, c.InputColumnName) })
246
var args = new
ValueToKeyMappingTransformer
.Options()
250
new
ValueToKeyMappingTransformer
.Column()
259
var xf =
ValueToKeyMappingTransformer
.Create(host, args, input.Data);
Microsoft.ML.Tests (9)
TermEstimatorTests.cs (2)
122
var
transformer = est.Fit(dataView);
142
var
termTransformer = termEst.Fit(dataView);
Transformers\CopyColumnEstimatorTests.cs (3)
136
var term =
ValueToKeyMappingTransformer
.Create(env, new
ValueToKeyMappingTransformer
.Options()
138
Columns = new[] { new
ValueToKeyMappingTransformer
.Column() { Source = "Term", Name = "T" } }
Transformers\KeyToBinaryVectorEstimatorTest.cs (2)
97
var
termTransformer = termEst.Fit(dataView);
153
var
transformer = est.Fit(dataView);
Transformers\KeyToVectorEstimatorTests.cs (2)
111
var
termTransformer = termEst.Fit(dataView);
212
var
transformer = est.Fit(dataView);
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
317
var
dataPrepTransformer = dataPrep.Fit(dataView);
Microsoft.ML.Transforms (17)
EntryPoints\TextAnalytics.cs (5)
66
Desc =
ValueToKeyMappingTransformer
.Summary,
67
UserName =
ValueToKeyMappingTransformer
.UserName,
68
ShortName =
ValueToKeyMappingTransformer
.LoaderSignature)]
69
public static CommonOutputs.TransformOutput TermTransform(IHostEnvironment env,
ValueToKeyMappingTransformer
.Options input)
72
var xf =
ValueToKeyMappingTransformer
.Create(h, input, input.Data);
OneHotEncoding.cs (8)
30
internal sealed class Column :
ValueToKeyMappingTransformer
.ColumnBase
72
internal sealed class Options :
ValueToKeyMappingTransformer
.OptionsBase
118
keyData =
ValueToKeyMappingTransformer
.GetKeyDataViewOrNull(env, ch, options.DataFile, options.TermsColumn, options.Loader, out bool autoLoaded);
342
internal void WrapTermWithDelegate(Action<
ValueToKeyMappingTransformer
> onFit)
379
Desc =
ValueToKeyMappingTransformer
.Summary,
380
UserName =
ValueToKeyMappingTransformer
.FriendlyName)]
381
public static CommonOutputs.TransformOutput TextToKey(IHostEnvironment env,
ValueToKeyMappingTransformer
.Options input)
388
var xf =
ValueToKeyMappingTransformer
.Create(host, input, input.Data);
SvmLight\SvmLightLoader.cs (1)
284
/// feature names, instead of a <see cref="CustomMappingTransformer{TSrc, TDst}"/>, we use a <see cref="
ValueToKeyMappingTransformer
"/>.
Text\WordBagTransform.cs (3)
404
/// This class is a merger of <see cref="
ValueToKeyMappingTransformer
.Options"/> and
518
keyData =
ValueToKeyMappingTransformer
.GetKeyDataViewOrNull(env, ch, termLoaderArgs.DataFile, termLoaderArgs.TermsColumn, termLoaderArgs.Loader, out var autoConvert);
584
/// The class includes a subset of <see cref="
ValueToKeyMappingTransformer
"/>'s arguments.