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