3 writes to _host
Microsoft.ML.Transforms (3)
Dracula\CountTargetEncodingTransformer.cs (3)
144
_host
= env.Register(nameof(CountTargetEncodingEstimator));
158
_host
= env.Register(nameof(CountTargetEncodingEstimator));
168
_host
= env.Register(nameof(CountTargetEncodingEstimator));
17 references to _host
Microsoft.ML.Transforms (17)
Dracula\CountTargetEncodingTransformer.cs (17)
145
_host
.CheckValue(initialCounts, nameof(initialCounts));
146
_host
.CheckNonEmpty(columns, nameof(columns));
147
_host
.Check(initialCounts.VerifyColumns(columns), nameof(columns));
149
_hashingEstimator = new HashingEstimator(
_host
, initialCounts.HashingTransformer.Columns.ToArray());
150
_countTableEstimator = new CountTableEstimator(
_host
, labelColumnName, initialCounts.CountTable,
161
_hashingEstimator = new HashingEstimator(
_host
, _hashingColumns);
169
_host
.CheckValue(options, nameof(options));
170
_host
.CheckUserArg(Utils.Size(options.Columns) > 0, nameof(options.Columns), "Columns must be specified");
171
_host
.CheckUserArg(!string.IsNullOrWhiteSpace(options.LabelColumn), nameof(options.LabelColumn), "Must specify the label column name");
194
_host
.CheckValue(builder, nameof(options.CountTable));
195
_countTableEstimator = new CountTableEstimator(
_host
, options.LabelColumn, builder.CreateComponent(
_host
), columns);
204
_host
.CheckValue(builder, nameof(options.CountTable));
208
builder.CreateComponent(
_host
),
213
_countTableEstimator = new CountTableEstimator(
_host
, options.LabelColumn, columns);
217
_hashingEstimator = new HashingEstimator(
_host
, _hashingColumns);
292
return new CountTargetEncodingTransformer(
_host
, hashingTransformer, _countTableEstimator.Fit(hashingTransformer.Transform(input)));