3 instantiations of HashingTransformer
Microsoft.ML.Data (3)
Transforms\Hashing.cs (3)
285
return new
HashingTransformer
(host, ctx);
346
return new
HashingTransformer
(env, input, cols).MakeDataTransform(input);
1947
public 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)]
138
loaderAssemblyName: typeof(
HashingTransformer
).Assembly.FullName);
278
private static
HashingTransformer
Create(IHostEnvironment env, ModelLoadContext ctx)
1314
private readonly
HashingTransformer
_parent;
1316
public Mapper(
HashingTransformer
parent, DataViewSchema inputSchema)
1745
/// Estimator for <see cref="
HashingTransformer
"/>, which hashes either single valued columns or vector columns. For vector columns,
1764
public sealed class HashingEstimator : IEstimator<
HashingTransformer
>
1945
/// Trains and returns a <see cref="
HashingTransformer
"/>.
1947
public
HashingTransformer
Fit(IDataView input) => new HashingTransformer(_host, input, _columns);
Microsoft.ML.PerformanceTests (5)
HashBench.cs (1)
87
var
xf = new HashingTransformer(_env, new[] { info });
Numeric\Ranking.cs (4)
45
var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader,
HashingTransformer
, FastTreeRankingTrainer, FastTreeRankingModelParameters>();
60
var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader,
HashingTransformer
, LightGbmMulticlassTrainer, OneVersusAllModelParameters>();
99
var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader,
HashingTransformer
, FastTreeRankingTrainer, FastTreeRankingModelParameters>();
109
var environment = EnvironmentFactory.CreateRankingEnvironment<RankingEvaluator, TextLoader,
HashingTransformer
, FastTreeRankingTrainer, FastTreeRankingModelParameters>();
Microsoft.ML.Samples (1)
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
63
var
transformer = pipeline.Fit(data);
Microsoft.ML.Tests (1)
Transformers\HashTests.cs (1)
140
var
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
"/>
291
var
hashingTransformer = _hashingEstimator.Fit(input);
310
public readonly
HashingTransformer
HashingTransformer;
330
internal CountTargetEncodingTransformer(IHostEnvironment env/*, HashingEstimator.ColumnOptions[] hashingColumns*/,
HashingTransformer
hashingTransformer, CountTableTransformer countTable)
348
ctx.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
372
var
hashing = new HashingEstimator(h, hashColumns.ToArray()).Fit(input);