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