1 write to Host
Microsoft.ML.Ensemble (1)
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
38
Host
= env.Register(name);
16 references to Host
Microsoft.ML.Ensemble (16)
Selector\SubsetSelector\BaseSubsetSelector.cs (13)
40
FeatureSelector = BaseSubsetSelectorOptions.FeatureSelector.CreateComponent(
Host
);
45
Host
.CheckValue(data, nameof(data));
46
Host
.CheckParam(size > 0, nameof(size));
47
Host
.CheckParam(0 <= validationDatasetProportion && validationDatasetProportion < 1,
59
Host
.Assert(Data != null, "Must call Initialize first!");
60
Host
.AssertValue(rand);
62
using (var ch =
Host
.Start("Getting batches"))
77
var view = new GenerateNumberTransform(
Host
, args, Data.Data);
78
var viewTest = new RangeFilter(
Host
, new RangeFilter.Options() { Column = name, Max = ValidationDatasetProportion }, view);
79
var viewTrain = new RangeFilter(
Host
, new RangeFilter.Options() { Column = name, Max = ValidationDatasetProportion, Complement = true }, view);
96
Host
.CheckValueOrNull(subset);
97
Host
.CheckValue(batch.TestInstances, nameof(batch), "Batch does not have test data");
101
return EnsembleUtils.SelectFeatures(
Host
, batch.TestInstances, subset.SelectedFeatures);
Selector\SubsetSelector\BootstrapSelector.cs (1)
51
var viewTrain = new BootstrapSamplingTransformer(
Host
, new BootstrapSamplingTransformer.Options(), Data.Data);
Selector\SubsetSelector\RandomPartitionSelector.cs (2)
44
IDataTransform view = new GenerateNumberTransform(
Host
, args, Data.Data);
49
var viewTrain = new RangeFilter(
Host
, new RangeFilter.Options() { Column = name, Min = (Double)i / Size, Max = (Double)(i + 1) / Size }, view);