2 instantiations of KeyToValueMappingEstimator
Microsoft.ML.Data (2)
Transforms\ConversionsExtensionsCatalog.cs (2)
140=> new KeyToValueMappingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName); 163return new KeyToValueMappingEstimator(env, columns.Select(x => (x.OutputColumnName, x.InputColumnName)).ToArray());
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. 139public 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. 159public 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)
46var 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)
46var est = new KeyToValueMappingEstimator(Env, ("A_back", "A"), ("B_back", "B"));