5 instantiations of KeyToValueMappingTransformer
Microsoft.ML.Data (5)
Evaluators\EvaluatorUtils.cs (1)
1077
overall = new
KeyToValueMappingTransformer
(env, MetricKinds.ColumnNames.StratCol).Transform(overall);
Transforms\KeyToValue.cs (4)
109
var transformer = new
KeyToValueMappingTransformer
(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray());
122
return 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),
21
KeyToValueMappingTransformer
.UserName,
KeyToValueMappingTransformer
.LoaderSignature, "KeyToValue", "KeyToVal", "Unterm")]
23
[assembly: LoadableClass(typeof(IDataTransform), typeof(
KeyToValueMappingTransformer
), null, typeof(SignatureLoadDataTransform),
24
KeyToValueMappingTransformer
.UserName,
KeyToValueMappingTransformer
.LoaderSignature)]
26
[assembly: LoadableClass(typeof(
KeyToValueMappingTransformer
), null, typeof(SignatureLoadModel),
27
KeyToValueMappingTransformer
.UserName,
KeyToValueMappingTransformer
.LoaderSignature)]
29
[assembly: LoadableClass(typeof(IRowMapper), typeof(
KeyToValueMappingTransformer
), null, typeof(SignatureLoadRowMapper),
30
KeyToValueMappingTransformer
.UserName,
KeyToValueMappingTransformer
.LoaderSignature)]
79
loaderAssemblyName: 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)
109
var
transformer = new KeyToValueMappingTransformer(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray());
116
private static
KeyToValueMappingTransformer
Create(IHostEnvironment env, ModelLoadContext ctx)
119
var host = env.Register(nameof(
KeyToValueMappingTransformer
));
158
private readonly
KeyToValueMappingTransformer
_parent;
162
public Mapper(
KeyToValueMappingTransformer
parent, DataViewSchema inputSchema)
600
/// Estimator for <see cref="
KeyToValueMappingTransformer
"/>. Converts the key types back to their original values.
618
public sealed class KeyToValueMappingEstimator : TrivialEstimator<
KeyToValueMappingTransformer
>
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
78
public TransformerChain<
KeyToValueMappingTransformer
> TrainResnetV250()
Microsoft.ML.Transforms (3)
OneHotEncoding.cs (3)
394
UserName =
KeyToValueMappingTransformer
.UserName)]
395
public static CommonOutputs.TransformOutput KeyToText(IHostEnvironment env,
KeyToValueMappingTransformer
.Options input)
402
var xf =
KeyToValueMappingTransformer
.Create(host, input, input.Data);