5 instantiations of KeyToValueMappingTransformer
Microsoft.ML.Data (5)
Evaluators\EvaluatorUtils.cs (1)
1077overall = new KeyToValueMappingTransformer(env, MetricKinds.ColumnNames.StratCol).Transform(overall);
Transforms\KeyToValue.cs (4)
109var transformer = new KeyToValueMappingTransformer(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray()); 122return new KeyToValueMappingTransformer(host, ctx); 621: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(KeyToValueMappingEstimator)), new KeyToValueMappingTransformer(env, outputColumnName, inputColumnName ?? outputColumnName)) 626: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(KeyToValueMappingEstimator)), new KeyToValueMappingTransformer(env, columns))
28 references to KeyToValueMappingTransformer
Microsoft.ML.Data (24)
Transforms\KeyToValue.cs (24)
20[assembly: LoadableClass(typeof(IDataTransform), typeof(KeyToValueMappingTransformer), typeof(KeyToValueMappingTransformer.Options), typeof(SignatureDataTransform), 21KeyToValueMappingTransformer.UserName, KeyToValueMappingTransformer.LoaderSignature, "KeyToValue", "KeyToVal", "Unterm")] 23[assembly: LoadableClass(typeof(IDataTransform), typeof(KeyToValueMappingTransformer), null, typeof(SignatureLoadDataTransform), 24KeyToValueMappingTransformer.UserName, KeyToValueMappingTransformer.LoaderSignature)] 26[assembly: LoadableClass(typeof(KeyToValueMappingTransformer), null, typeof(SignatureLoadModel), 27KeyToValueMappingTransformer.UserName, KeyToValueMappingTransformer.LoaderSignature)] 29[assembly: LoadableClass(typeof(IRowMapper), typeof(KeyToValueMappingTransformer), null, typeof(SignatureLoadRowMapper), 30KeyToValueMappingTransformer.UserName, KeyToValueMappingTransformer.LoaderSignature)] 79loaderAssemblyName: typeof(KeyToValueMappingTransformer).Assembly.FullName); 83/// Create a <see cref="KeyToValueMappingTransformer"/> that takes and transforms one column. 91/// Create a <see cref="KeyToValueMappingTransformer"/> that takes multiple pairs of columns. 94: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(KeyToValueMappingTransformer)), columns) 109var transformer = new KeyToValueMappingTransformer(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray()); 116private static KeyToValueMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 119var host = env.Register(nameof(KeyToValueMappingTransformer)); 158private readonly KeyToValueMappingTransformer _parent; 162public Mapper(KeyToValueMappingTransformer parent, DataViewSchema inputSchema) 600/// Estimator for <see cref="KeyToValueMappingTransformer"/>. Converts the key types back to their original values. 618public sealed class KeyToValueMappingEstimator : TrivialEstimator<KeyToValueMappingTransformer>
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
78public TransformerChain<KeyToValueMappingTransformer> TrainResnetV250()
Microsoft.ML.Transforms (3)
OneHotEncoding.cs (3)
394UserName = KeyToValueMappingTransformer.UserName)] 395public static CommonOutputs.TransformOutput KeyToText(IHostEnvironment env, KeyToValueMappingTransformer.Options input) 402var xf = KeyToValueMappingTransformer.Create(host, input, input.Data);