8 instantiations of CountTableEstimator
Microsoft.ML.Transforms (8)
Dracula\CountTableTransformer.cs (2)
493
estimator = new
CountTableEstimator
(env, options.LabelColumn, columnOptions);
511
estimator = new
CountTableEstimator
(env, options.LabelColumn, builder.CreateComponent(env), columnOptions);
Dracula\CountTargetEncodingTransformer.cs (6)
126
: this(env, new
CountTableEstimator
(env, labelColumnName,
135
: this(env, new
CountTableEstimator
(env, labelColumnName, countTableBuilder,
150
_countTableEstimator = new
CountTableEstimator
(_host, labelColumnName, initialCounts.CountTable,
195
_countTableEstimator = new
CountTableEstimator
(_host, options.LabelColumn, builder.CreateComponent(_host), columns);
213
_countTableEstimator = new
CountTableEstimator
(_host, options.LabelColumn, columns);
246
return new
CountTableEstimator
(env, labelColumn, countTableTransformer, columns);
24 references to CountTableEstimator
Microsoft.ML.Transforms (24)
Dracula\CountTableTransformer.cs (6)
121
_host = env.Register(nameof(
CountTableEstimator
));
469
CountTableEstimator
estimator;
479
var columnOptions = new
CountTableEstimator
.ColumnOptions[options.Columns.Length];
486
columnOptions[i] = new
CountTableEstimator
.ColumnOptions(c.Name,
497
var columnOptions = new
CountTableEstimator
.SharedColumnOptions[options.Columns.Length];
503
columnOptions[i] = new
CountTableEstimator
.SharedColumnOptions(c.Name,
Dracula\CountTargetEncodingTransformer.cs (18)
121
private readonly
CountTableEstimator
_countTableEstimator;
123
internal CountTargetEncodingEstimator(IHostEnvironment env, string labelColumnName,
CountTableEstimator
.ColumnOptions[] columnOptions,
127
columnOptions.Select(col => new
CountTableEstimator
.ColumnOptions(col.Name, col.Name, col.CountTableBuilder, col.PriorCoefficient, col.LaplaceScale, col.Seed)).ToArray()),
132
internal CountTargetEncodingEstimator(IHostEnvironment env, string labelColumnName,
CountTableEstimator
.SharedColumnOptions[] columnOptions,
136
columnOptions.Select(col => new
CountTableEstimator
.SharedColumnOptions(col.Name, col.Name, col.PriorCoefficient, col.LaplaceScale, col.Seed)).ToArray()),
154
private CountTargetEncodingEstimator(IHostEnvironment env,
CountTableEstimator
estimator,
CountTableEstimator
.ColumnOptionsBase[] columns,
182
var columns = new
CountTableEstimator
.SharedColumnOptions[options.Columns.Length];
186
columns[i] = new
CountTableEstimator
.SharedColumnOptions(
199
var columns = new
CountTableEstimator
.ColumnOptions[options.Columns.Length];
205
columns[i] = new
CountTableEstimator
.ColumnOptions(
220
internal static
CountTableEstimator
LoadFromFile(IHostEnvironment env, string initialCountsModel, string labelColumn, InputOutputColumnPair[] columns)
250
private HashingEstimator.ColumnOptions[] InitializeHashingColumnOptions(
CountTableEstimator
.ColumnOptionsBase[] columns, int numberOfBits, bool combine, uint hashingSeed)
449
var columnOptions = new
CountTableEstimator
.SharedColumnOptions[columns.Length];
452
columnOptions[i] = new
CountTableEstimator
.SharedColumnOptions(
459
var columnOptions = new
CountTableEstimator
.ColumnOptions[columns.Length];
462
columnOptions[i] = new
CountTableEstimator
.ColumnOptions(
517
new[] { new
CountTableEstimator
.ColumnOptions(outputColumnName, inputColumnName, builder, priorCoefficient, laplaceScale) },