35 instantiations of ColumnOptions
Microsoft.ML.Data (5)
DataLoadSave\DataOperationsCatalog.cs (2)
572new HashingEstimator.ColumnOptions(splitColumnName, hashInputColumnName, 30, (uint)seedToUse.Value, combine: true) : 573new HashingEstimator.ColumnOptions(splitColumnName, hashInputColumnName, 30, combine: true);
Transforms\Hashing.cs (3)
295_columns[i] = new HashingEstimator.ColumnOptions(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, ctx); 338cols[i] = new HashingEstimator.ColumnOptions( 1917: this(env, new ColumnOptions(outputColumnName, inputColumnName ?? outputColumnName,
Microsoft.ML.IntegrationTests (1)
DataTransformation.cs (1)
204new ColumnOptions("Features", "Features", 31, useOrderedHashing: true) }));
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
86var info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: numberOfBits);
Microsoft.ML.Samples (2)
Dynamic\Transforms\Conversion\HashWithOptions.cs (2)
48new HashingEstimator.ColumnOptions( 55new HashingEstimator.ColumnOptions(
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipe.cs (2)
1116var hashTransform = new HashingTransformer(Env, new HashingEstimator.ColumnOptions("F1", "F1", 5, 42)).Transform(srcView); 1147var hashTransform = new HashingTransformer(Env, new HashingEstimator.ColumnOptions("F1V", "F1V", 5, 42)).Transform(srcView);
Microsoft.ML.Tests (22)
Transformers\HashTests.cs (22)
52new HashingEstimator.ColumnOptions("HashA", "A", numberOfBits:4, maximumNumberOfInverts:-1), 53new HashingEstimator.ColumnOptions("HashB", "B", numberOfBits:3, useOrderedHashing:true), 54new HashingEstimator.ColumnOptions("HashC", "C", seed:42), 55new HashingEstimator.ColumnOptions("HashD", "A"), 74new HashingEstimator.ColumnOptions("HashA", "A", maximumNumberOfInverts:1, numberOfBits:10), 75new HashingEstimator.ColumnOptions("HashAUnlim", "A", maximumNumberOfInverts:-1, numberOfBits:10), 76new HashingEstimator.ColumnOptions("HashAUnlimOrdered", "A", maximumNumberOfInverts:-1, numberOfBits:10, useOrderedHashing:true) 114new HashingEstimator.ColumnOptions("HashA", "A", numberOfBits:4, maximumNumberOfInverts:-1), 115new HashingEstimator.ColumnOptions("HashB", "B", numberOfBits:3, useOrderedHashing:true), 116new HashingEstimator.ColumnOptions("HashC", "C", seed:42), 117new HashingEstimator.ColumnOptions("HashD" ,"A"), 149var info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits); 156info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, useOrderedHashing: true); 169info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, useOrderedHashing: false); 179info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, useOrderedHashing: true); 189info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, combine: true); 200info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, useOrderedHashing: false); 209info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, useOrderedHashing: true); 217info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits, combine: true); 385new HashingEstimator.ColumnOptions("AHashed", "A"), 386new HashingEstimator.ColumnOptions("DHashed", "D"), 387new HashingEstimator.ColumnOptions("DHashedCombined", "D", combine: true)));
Microsoft.ML.Transforms (2)
Dracula\CountTargetEncodingTransformer.cs (1)
256cols[i] = new HashingEstimator.ColumnOptions(column.Name, column.InputColumnName,
OneHotHashEncoding.cs (1)
292HashingOptions = new HashingEstimator.ColumnOptions(name, inputColumnName ?? name, numberOfBits, seed, useOrderedHashing, maximumNumberOfInverts);
42 references to ColumnOptions
Microsoft.ML.Data (32)
DataLoadSave\DataOperationsCatalog.cs (1)
570var columnOptions =
Transforms\ConversionsExtensionsCatalog.cs (3)
50/// Create a <see cref="HashingEstimator"/>, which hashes the input column's data type <see cref="ColumnOptions.InputColumnName" /> 51/// to a new column: <see cref="ColumnOptions.Name" />. 65public static HashingEstimator Hash(this TransformsCatalog.ConversionTransforms catalog, params ColumnOptions[] columns)
Transforms\Hashing.cs (28)
141private readonly HashingEstimator.ColumnOptions[] _columns; 143internal IReadOnlyCollection<HashingEstimator.ColumnOptions> Columns => _columns; 155private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(HashingEstimator.ColumnOptions[] columns) 161private DataViewType GetOutputType(DataViewSchema inputSchema, HashingEstimator.ColumnOptions column) 178internal HashingTransformer(IHostEnvironment env, params HashingEstimator.ColumnOptions[] columns) : 182foreach (var column in _columns) 188throw Host.ExceptParam(nameof(HashingEstimator.ColumnOptions.Combine), "When the 'Combine' option is specified, ordered hashing is not supported."); 192internal HashingTransformer(IHostEnvironment env, IDataView input, params HashingEstimator.ColumnOptions[] columns) : 239var ex = _columns[iinfo]; 292_columns = new HashingEstimator.ColumnOptions[columnsLength]; 312foreach (var col in _columns) 334var cols = new HashingEstimator.ColumnOptions[options.Columns.Length]; 455var ex = _columns[iinfo]; 1483private readonly HashingEstimator.ColumnOptions _ex; 1487private InvertHashHelper(DataViewRow row, HashingEstimator.ColumnOptions ex) 1508public static InvertHashHelper Create(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1519var consTypes = new Type[] { typeof(DataViewRow), typeof(HashingEstimator.ColumnOptions), typeof(int), typeof(Delegate) }; 1596protected Impl(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount) 1629public ImplOne(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1663public ImplVec(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1697public ImplVecOrdered(DataViewRow row, HashingEstimator.ColumnOptions ex, int invertHashMaxCount, Delegate dstGetter) 1763/// <seealso cref="ConversionsExtensionsCatalog.Hash(TransformsCatalog.ConversionTransforms, HashingEstimator.ColumnOptions[])"/> 1889private readonly ColumnOptions[] _columns; 1928internal HashingEstimator(IHostEnvironment env, params ColumnOptions[] columns) 1935foreach (var columnOptions in _columns) 1938throw _host.ExceptParam(nameof(ColumnOptions.Combine), "When the 'Combine' option is specified, invert hashes are not supported."); 1940throw _host.ExceptParam(nameof(ColumnOptions.Combine), "When the 'Combine' option is specified, ordered hashing is not supported."); 1957foreach (var colInfo in _columns)
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
86var info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: numberOfBits);
Microsoft.ML.Tests (2)
Transformers\HashTests.cs (2)
138ValueGetter<TType> hashGetter<TType>(HashingEstimator.ColumnOptions colInfo) 149var info = new HashingEstimator.ColumnOptions("Bar", "Foo", numberOfBits: bits);
Microsoft.ML.Transforms (7)
Dracula\CountTargetEncodingTransformer.cs (5)
119private readonly HashingEstimator.ColumnOptions[] _hashingColumns; 250private HashingEstimator.ColumnOptions[] InitializeHashingColumnOptions(CountTableEstimator.ColumnOptionsBase[] columns, int numberOfBits, bool combine, uint hashingSeed) 252var cols = new HashingEstimator.ColumnOptions[columns.Length]; 262private HashingEstimator.ColumnOptions[] InitializeHashingColumnOptions(Options options) 265var cols = new HashingEstimator.ColumnOptions[columns.Length];
OneHotHashEncoding.cs (1)
269public readonly HashingEstimator.ColumnOptions HashingOptions;
Text\WordHashBagProducingTransform.cs (1)
335var hashColumns = new List<HashingEstimator.ColumnOptions>();