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