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