4 instantiations of ValueMappingTransformer
Microsoft.ML.Data (4)
Transforms\ValueMapping.cs (4)
80new ValueMappingTransformer(env, lookupMap, keyColumn, valueColumn, columns)) 599return new ValueMappingTransformer(env, lookupMap, lookupMap.Schema[keyColumnName], lookupMap.Schema[valueColumnName], columns); 689transformer = new ValueMappingTransformer(env, loader, loader.Schema[keyColumnName], loader.Schema[valueColumnName], columns); 742return new ValueMappingTransformer(env, binaryLoader, binaryLoader.Schema[keyColumnName], binaryLoader.Schema[DefaultValueColumnName], columns);
77 references to ValueMappingTransformer
Microsoft.ML.Data (48)
Transforms\ConversionsExtensionsCatalog.cs (20)
343ValueMappingTransformer.DefaultKeyColumnName, 344ValueMappingTransformer.DefaultValueColumnName, treatValuesAsKeyType); 347lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 348lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 375ValueMappingTransformer.DefaultKeyColumnName, 376ValueMappingTransformer.DefaultValueColumnName, false); 379lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 380lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 409ValueMappingTransformer.DefaultKeyColumnName, 410ValueMappingTransformer.DefaultValueColumnName, treatValuesAsKeyType); 413lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 414lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 448ValueMappingTransformer.DefaultKeyColumnName, 449ValueMappingTransformer.DefaultValueColumnName); 452lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 453lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 479ValueMappingTransformer.DefaultKeyColumnName, 480ValueMappingTransformer.DefaultValueColumnName); 483lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 484lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName],
Transforms\ValueMapping.cs (28)
19[assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueMappingTransformer), 20typeof(ValueMappingTransformer.Options), typeof(SignatureDataTransform), 21ValueMappingTransformer.UserName, "ValueMapping", "ValueMappingTransformer", ValueMappingTransformer.ShortName, 24[assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueMappingTransformer), null, typeof(SignatureLoadDataTransform), 25"Value Mapping Transform", ValueMappingTransformer.LoaderSignature, ValueMappingTransformer.TermLookupLoaderSignature)] 27[assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(ValueMappingTransformer), null, typeof(SignatureLoadModel), 28"Value Mapping Transform", ValueMappingTransformer.LoaderSignature)] 30[assembly: LoadableClass(typeof(IRowMapper), typeof(ValueMappingTransformer), null, typeof(SignatureLoadRowMapper), 31ValueMappingTransformer.UserName, ValueMappingTransformer.LoaderSignature)] 37/// Estimator for <see cref="ValueMappingTransformer"/> creating a key-value map using the pairs of values in the input data 66public class ValueMappingEstimator : TrivialEstimator<ValueMappingTransformer> 136/// Estimator for <see cref="ValueMappingTransformer"/> creating a key-value map using the pairs of values in the input data 376loaderAssemblyName: typeof(ValueMappingTransformer).Assembly.FullName); 388loaderAssemblyName: typeof(ValueMappingTransformer).Assembly.FullName); 433: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(ValueMappingTransformer)), columns) 548private static ValueMappingTransformer CreateTransformInvoke<TKey, TValue>(IHostEnvironment env, 687ValueMappingTransformer transformer = null; 710private protected static ValueMappingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 950ValueMappingTransformer.DefaultKeyColumnName, 951ValueMappingTransformer.DefaultValueColumnName, 1033private readonly ValueMappingTransformer _parent; 1036internal Mapper(ValueMappingTransformer transform,
Microsoft.ML.Tests (29)
Transformers\ValueMappingTests.cs (29)
59ValueMappingTransformer.DefaultKeyColumnName, 60ValueMappingTransformer.DefaultValueColumnName, false); 63lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 64lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 67var t = estimator.Fit(dataView); 97ValueMappingTransformer.DefaultKeyColumnName, 98ValueMappingTransformer.DefaultValueColumnName, false); 101lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 102lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 181ValueMappingTransformer.DefaultKeyColumnName, 182ValueMappingTransformer.DefaultValueColumnName); 185lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 186lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 196var t = estimator.Fit(dataView); 237var t = estimator.Fit(dataView); 270ValueMappingTransformer.DefaultKeyColumnName, 271ValueMappingTransformer.DefaultValueColumnName); 274lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 275lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 278var t = estimator.Fit(dataView); 311ValueMappingTransformer.DefaultKeyColumnName, 312ValueMappingTransformer.DefaultValueColumnName, false); 315lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 316lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName], 319var t = estimator.Fit(dataView); 349ValueMappingTransformer.DefaultKeyColumnName, 350ValueMappingTransformer.DefaultValueColumnName, false); 353lookupMap.Schema[ValueMappingTransformer.DefaultKeyColumnName], 354lookupMap.Schema[ValueMappingTransformer.DefaultValueColumnName],