5 instantiations of OneHotHashEncodingEstimator
Microsoft.ML.Transforms (5)
CategoricalCatalog.cs (3)
147
=> new
OneHotHashEncodingEstimator
(CatalogUtils.GetEnvironment(catalog),
187
return new
OneHotHashEncodingEstimator
(env, columnOptions);
198
=> new
OneHotHashEncodingEstimator
(CatalogUtils.GetEnvironment(catalog), columns);
OneHotHashEncoding.cs (2)
140
return new
OneHotHashEncodingEstimator
(env, name, source, numberOfBits, maximumNumberOfInverts, outputKind).Fit(input).Transform(input) as IDataView;
164
return new
OneHotHashEncodingEstimator
(env, columns.ToArray()).Fit(input).Transform(input) as IDataTransform;
64 references to OneHotHashEncodingEstimator
Microsoft.ML.Samples (3)
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (2)
30
var
pipeline = mlContext.Transforms.Categorical.OneHotHashEncoding(
47
var
keyPipeline = mlContext.Transforms.Categorical.OneHotHashEncoding(
Dynamic\Transforms\Categorical\OneHotHashEncodingMultiColumn.cs (1)
29
var
multiColumnKeyPipeline =
Microsoft.ML.Tests (32)
OnnxConversionTest.cs (4)
1005
var
pipeline = mlContext.Transforms.Categorical.OneHotHashEncoding(new[]{
1006
new
OneHotHashEncodingEstimator
.ColumnOptions("Output", "F3", useOrderedHashing:false),
2026
var
pipe = ML.Transforms.Categorical.OneHotHashEncoding(new[]{
2027
new
OneHotHashEncodingEstimator
.ColumnOptions("Output", "F3", useOrderedHashing:false),
Transformers\CategoricalHashTests.cs (28)
52
var
pipe = ML.Transforms.Categorical.OneHotHashEncoding(new[]{
53
new
OneHotHashEncodingEstimator
.ColumnOptions("CatA", "A", OneHotEncodingEstimator.OutputKind.Bag),
54
new
OneHotHashEncodingEstimator
.ColumnOptions("CatB", "A", OneHotEncodingEstimator.OutputKind.Binary),
55
new
OneHotHashEncodingEstimator
.ColumnOptions("CatC", "A", OneHotEncodingEstimator.OutputKind.Indicator),
56
new
OneHotHashEncodingEstimator
.ColumnOptions("CatD", "A", OneHotEncodingEstimator.OutputKind.Key),
57
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVA", "B", OneHotEncodingEstimator.OutputKind.Bag),
58
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVB", "B", OneHotEncodingEstimator.OutputKind.Binary),
59
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVC", "B", OneHotEncodingEstimator.OutputKind.Indicator),
60
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVD", "B", OneHotEncodingEstimator.OutputKind.Key),
61
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVVA", "C", OneHotEncodingEstimator.OutputKind.Bag),
62
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVVB", "C", OneHotEncodingEstimator.OutputKind.Binary),
63
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVVC", "C", OneHotEncodingEstimator.OutputKind.Indicator),
64
new
OneHotHashEncodingEstimator
.ColumnOptions("CatVVD", "C", OneHotEncodingEstimator.OutputKind.Key),
120
var
bagPipe = ML.Transforms.Categorical.OneHotHashEncoding(
121
new
OneHotHashEncodingEstimator
.ColumnOptions("CatA", "A", OneHotEncodingEstimator.OutputKind.Bag, maximumNumberOfInverts: -1),
122
new
OneHotHashEncodingEstimator
.ColumnOptions("CatB", "B", OneHotEncodingEstimator.OutputKind.Bag, maximumNumberOfInverts: -1),
123
new
OneHotHashEncodingEstimator
.ColumnOptions("CatC", "C", OneHotEncodingEstimator.OutputKind.Bag, maximumNumberOfInverts: -1),
124
new
OneHotHashEncodingEstimator
.ColumnOptions("CatD", "D", OneHotEncodingEstimator.OutputKind.Bag, maximumNumberOfInverts: -1),
125
new
OneHotHashEncodingEstimator
.ColumnOptions("CatE", "E", OneHotEncodingEstimator.OutputKind.Indicator, maximumNumberOfInverts: -1),
126
new
OneHotHashEncodingEstimator
.ColumnOptions("CatF", "F", OneHotEncodingEstimator.OutputKind.Indicator, maximumNumberOfInverts: -1),
127
new
OneHotHashEncodingEstimator
.ColumnOptions("CatG", "A", OneHotEncodingEstimator.OutputKind.Key, maximumNumberOfInverts: -1),
128
new
OneHotHashEncodingEstimator
.ColumnOptions("CatH", "B", OneHotEncodingEstimator.OutputKind.Key, maximumNumberOfInverts: -1),
129
new
OneHotHashEncodingEstimator
.ColumnOptions("CatI", "A", OneHotEncodingEstimator.OutputKind.Binary, maximumNumberOfInverts: -1),
130
new
OneHotHashEncodingEstimator
.ColumnOptions("CatJ", "B", OneHotEncodingEstimator.OutputKind.Binary, maximumNumberOfInverts: -1));
225
var
pipe = ML.Transforms.Categorical.OneHotHashEncoding(new[]{
226
new
OneHotHashEncodingEstimator
.ColumnOptions("CatHashA", "A"),
227
new
OneHotHashEncodingEstimator
.ColumnOptions("CatHashB", "B"),
228
new
OneHotHashEncodingEstimator
.ColumnOptions("CatHashC", "C"),
Microsoft.ML.Transforms (29)
CategoricalCatalog.cs (16)
114
/// Create a <see cref="
OneHotHashEncodingEstimator
"/>, which converts a text column specified by <paramref name="inputColumnName"/>
139
public static
OneHotHashEncodingEstimator
OneHotHashEncoding(this TransformsCatalog.CategoricalTransforms catalog,
143
int numberOfBits =
OneHotHashEncodingEstimator
.Defaults.NumberOfBits,
144
uint seed =
OneHotHashEncodingEstimator
.Defaults.Seed,
145
bool useOrderedHashing =
OneHotHashEncodingEstimator
.Defaults.UseOrderedHashing,
146
int maximumNumberOfInverts =
OneHotHashEncodingEstimator
.Defaults.MaximumNumberOfInverts)
148
new[] { new
OneHotHashEncodingEstimator
.ColumnOptions(outputColumnName, inputColumnName, outputKind, numberOfBits, seed, useOrderedHashing, maximumNumberOfInverts) });
151
/// Create a <see cref="
OneHotHashEncodingEstimator
"/>, which converts one or more input text columns specified by <paramref name="columns"/>
176
public static
OneHotHashEncodingEstimator
OneHotHashEncoding(this TransformsCatalog.CategoricalTransforms catalog,
179
int numberOfBits =
OneHotHashEncodingEstimator
.Defaults.NumberOfBits,
180
uint seed =
OneHotHashEncodingEstimator
.Defaults.Seed,
181
bool useOrderedHashing =
OneHotHashEncodingEstimator
.Defaults.UseOrderedHashing,
182
int maximumNumberOfInverts =
OneHotHashEncodingEstimator
.Defaults.MaximumNumberOfInverts)
186
var columnOptions = columns.Select(x => new
OneHotHashEncodingEstimator
.ColumnOptions(x.OutputColumnName, x.InputColumnName, outputKind, numberOfBits, seed, useOrderedHashing, maximumNumberOfInverts)).ToArray();
196
internal static
OneHotHashEncodingEstimator
OneHotHashEncoding(this TransformsCatalog.CategoricalTransforms catalog,
197
params
OneHotHashEncodingEstimator
.ColumnOptions[] columns)
OneHotHashEncoding.cs (13)
21
/// <see cref="ITransformer"/> resulting from fitting a <see cref="
OneHotHashEncodingEstimator
"/>.
96
public int NumberOfBits =
OneHotHashEncodingEstimator
.Defaults.NumberOfBits;
99
public uint Seed =
OneHotHashEncodingEstimator
.Defaults.Seed;
102
public bool Ordered =
OneHotHashEncodingEstimator
.Defaults.UseOrderedHashing;
107
public int MaximumNumberOfInverts =
OneHotHashEncodingEstimator
.Defaults.MaximumNumberOfInverts;
111
public OneHotEncodingEstimator.OutputKind OutputKind =
OneHotHashEncodingEstimator
.Defaults.OutputKind;
136
int numberOfBits =
OneHotHashEncodingEstimator
.Defaults.NumberOfBits,
137
int maximumNumberOfInverts =
OneHotHashEncodingEstimator
.Defaults.MaximumNumberOfInverts,
138
OneHotEncodingEstimator.OutputKind outputKind =
OneHotHashEncodingEstimator
.Defaults.OutputKind)
151
var columns = new List<
OneHotHashEncodingEstimator
.ColumnOptions>();
154
var col = new
OneHotHashEncodingEstimator
.ColumnOptions(
302
/// Instantiates a new instance of <see cref="
OneHotHashEncodingEstimator
"/>.
329
using (var ch = _host.Start(nameof(
OneHotHashEncodingEstimator
)))