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