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)); 208builder.CreateComponent(_host), 213_countTableEstimator = new CountTableEstimator(_host, options.LabelColumn, columns); 217_hashingEstimator = new HashingEstimator(_host, _hashingColumns); 292return new CountTargetEncodingTransformer(_host, hashingTransformer, _countTableEstimator.Fit(hashingTransformer.Transform(input)));