1 write to _host
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
71_host = env.Register("Sweeper");
30 references to _host
Microsoft.ML.Sweeper (30)
Algorithms\SmacSweeper.cs (30)
73_host.CheckUserArg(options.NumOfTrees > 0, nameof(options.NumOfTrees), "parameter must be greater than 0"); 74_host.CheckUserArg(options.NMinForSplit > 1, nameof(options.NMinForSplit), "parameter must be greater than 1"); 75_host.CheckUserArg(options.SplitRatio > 0 && options.SplitRatio <= 1, nameof(options.SplitRatio), "parameter must be in range (0,1]."); 76_host.CheckUserArg(options.NumberInitialPopulation > 1, nameof(options.NumberInitialPopulation), "parameter must be greater than 1"); 77_host.CheckUserArg(options.LocalSearchParentCount > 0, nameof(options.LocalSearchParentCount), "parameter must be greater than 0"); 78_host.CheckUserArg(options.NumRandomEISearchConfigurations > 0, nameof(options.NumRandomEISearchConfigurations), "parameter must be greater than 0"); 79_host.CheckUserArg(options.NumNeighborsForNumericalParams > 0, nameof(options.NumNeighborsForNumericalParams), "parameter must be greater than 0"); 82_host.CheckUserArg(Utils.Size(options.SweptParameters) > 0, nameof(options.SweptParameters), "SMAC sweeper needs at least one parameter to sweep over"); 83_sweepParameters = options.SweptParameters.Select(p => p.CreateComponent(_host)).ToArray(); 120features[i] = SweeperProbabilityUtils.ParameterSetAsFloatArray(_host, _sweepParameters, r.ParameterSet, true); 125ArrayDataViewBuilder dvBuilder = new ArrayDataViewBuilder(_host); 130_host.Assert(view.GetRowCount() == targets.Length, "This data view will have as many rows as there have been evaluations"); 132using (IChannel ch = _host.Start("Single training")) 136var trainer = new FastForestRegressionTrainer(_host, 211_host.Assert(randomConfigs.Length == randomEIs.Length); 258throw _host.Except(e, "SMAC sweeper localSearch threw exception"); 271SweeperProbabilityUtils spu = new SweeperProbabilityUtils(_host); 281_host.AssertValue(pset); 287float[] neighbor = SweeperProbabilityUtils.ParameterSetAsFloatArray(_host, _sweepParameters, parent, false); 299_host.Assert(hotIndex >= 0); 305neighbors.Add(SweeperProbabilityUtils.FloatArrayAsParameterSet(_host, _sweepParameters, neighbor, false)); 310_host.Check(parameterNumeric != null, "SMAC sweeper can only sweep over discrete and numeric parameters"); 315float[] neigh = SweeperProbabilityUtils.ParameterSetAsFloatArray(_host, _sweepParameters, parent, false); 320ParameterSet neighbor = SweeperProbabilityUtils.FloatArrayAsParameterSet(_host, _sweepParameters, neigh, false); 343float[] transformedParams = SweeperProbabilityUtils.ParameterSetAsFloatArray(_host, _sweepParameters, config, true); 439_host.Assert(parameterSet.Count == _sweepParameters.Length); 440_host.Assert(index >= 0 && index <= _sweepParameters.Length); 444_host.AssertValue(pset); 458_host.Assert(hotIndex >= 0); 465_host.Check(parameterNumeric != null, "SMAC sweeper can only sweep over discrete and numeric parameters");