14 instantiations of KeyToValueMappingEstimator
Microsoft.ML.Data (2)
Transforms\ConversionsExtensionsCatalog.cs (2)
140
=> new
KeyToValueMappingEstimator
(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName);
163
return new
KeyToValueMappingEstimator
(env, columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray());
Microsoft.ML.Tests (12)
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
37
.Append(new
KeyToValueMappingEstimator
(ml, "PredictedLabel"));
Scenarios\Api\Estimators\Extensibility.cs (1)
46
.Append(new
KeyToValueMappingEstimator
(ml, "PredictedLabel"));
TrainerEstimators\MetalinearEstimators.cs (3)
33
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
50
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
100
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
TrainerEstimators\TreeEstimators.cs (5)
313
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
353
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
373
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
398
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
417
.Append(new
KeyToValueMappingEstimator
(Env, "PredictedLabel"));
Transformers\KeyToValueTests.cs (1)
46
var est = new
KeyToValueMappingEstimator
(Env, ("A_back", "A"), ("B_back", "B"));
Transformers\TextFeaturizerTests.cs (1)
471
.Append(new
KeyToValueMappingEstimator
(ML, "chars"));
10 references to KeyToValueMappingEstimator
Microsoft.ML.Data (7)
Transforms\ConversionsExtensionsCatalog.cs (4)
123
/// Create a <see cref="
KeyToValueMappingEstimator
"/>, which converts the key types back to their original values.
139
public static
KeyToValueMappingEstimator
MapKeyToValue(this TransformsCatalog.ConversionTransforms catalog, string outputColumnName, string inputColumnName = null)
143
/// Create a <see cref="
KeyToValueMappingEstimator
"/>, which converts the key types back to their original values.
159
public static
KeyToValueMappingEstimator
MapKeyToValue(this TransformsCatalog.ConversionTransforms catalog, InputOutputColumnPair[] columns)
Transforms\KeyToValue.cs (3)
35
/// <see cref="ITransformer"/> resulting from fitting a <see cref="
KeyToValueMappingEstimator
"/>.
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))
Microsoft.ML.Samples (1)
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
46
var
newPipeline = mlContext.Transforms.Conversion.MapKeyToValue(new[]
Microsoft.ML.Tests (2)
Transformers\ConvertTests.cs (1)
275
/// Apply <see cref="
KeyToValueMappingEstimator
"/> with side data.
Transformers\KeyToValueTests.cs (1)
46
var
est = new KeyToValueMappingEstimator(Env, ("A_back", "A"), ("B_back", "B"));