3 instantiations of HashingTransformer
Microsoft.ML.Data (3)
Transforms\Hashing.cs (3)
285return new HashingTransformer(host, ctx); 346return new HashingTransformer(env, input, cols).MakeDataTransform(input); 1947public HashingTransformer Fit(IDataView input) => new HashingTransformer(_host, input, _columns);
35 references to HashingTransformer
Microsoft.ML.Data (19)
Transforms\Hashing.cs (19)
18[assembly: LoadableClass(HashingTransformer.Summary, typeof(IDataTransform), typeof(HashingTransformer), typeof(HashingTransformer.Options), typeof(SignatureDataTransform), 21[assembly: LoadableClass(HashingTransformer.Summary, typeof(IDataTransform), typeof(HashingTransformer), null, typeof(SignatureLoadDataTransform), 22"Hash Transform", HashingTransformer.LoaderSignature)] 24[assembly: LoadableClass(HashingTransformer.Summary, typeof(HashingTransformer), null, typeof(SignatureLoadModel), 25"Hash Transform", HashingTransformer.LoaderSignature)] 27[assembly: LoadableClass(typeof(IRowMapper), typeof(HashingTransformer), null, typeof(SignatureLoadRowMapper), 28"Hash Transform", HashingTransformer.LoaderSignature)] 138loaderAssemblyName: typeof(HashingTransformer).Assembly.FullName); 278private static HashingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 1314private readonly HashingTransformer _parent; 1316public Mapper(HashingTransformer parent, DataViewSchema inputSchema) 1745/// Estimator for <see cref="HashingTransformer"/>, which hashes either single valued columns or vector columns. For vector columns, 1764public sealed class HashingEstimator : IEstimator<HashingTransformer> 1945/// Trains and returns a <see cref="HashingTransformer"/>. 1947public HashingTransformer Fit(IDataView input) => new HashingTransformer(_host, input, _columns);
Microsoft.ML.PerformanceTests (5)
HashBench.cs (1)
87var xf = new HashingTransformer(_env, new[] { info });
Numeric\Ranking.cs (4)
45var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>(); 60var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, LightGbmMulticlassTrainer, OneVersusAllModelParameters>(); 99var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>(); 109var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader, HashingTransformer, FastTreeRankingTrainer, FastTreeRankingModelParameters>();
Microsoft.ML.Samples (1)
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
63var transformer = pipeline.Fit(data);
Microsoft.ML.Tests (1)
Transformers\HashTests.cs (1)
140var xf = new HashingTransformer(Env, new[] { colInfo });
Microsoft.ML.Transforms (9)
Dracula\CountTargetEncodingTransformer.cs (5)
52/// This is a merger of arguments for <see cref="CountTableTransformer"/> and <see cref="HashingTransformer"/> 291var hashingTransformer = _hashingEstimator.Fit(input); 310public readonly HashingTransformer HashingTransformer; 330internal CountTargetEncodingTransformer(IHostEnvironment env/*, HashingEstimator.ColumnOptions[] hashingColumns*/, HashingTransformer hashingTransformer, CountTableTransformer countTable) 348ctx.LoadModel<HashingTransformer, SignatureLoadModel>(_host, out HashingTransformer, "HashingTransformer");
OneHotHashEncoding.cs (1)
86/// This class is a merger of <see cref="HashingTransformer.Options"/> and <see cref="KeyToVectorMappingTransformer.Options"/>
Text\WordBagTransform.cs (1)
618/// (by using <see cref="HashingTransformer"/> or <see cref="NgramHashingTransformer"/>, for example).
Text\WordHashBagProducingTransform.cs (2)
253/// This class is a merger of <see cref="HashingTransformer.Options"/> and 372var hashing = new HashingEstimator(h, hashColumns.ToArray()).Fit(input);