41 writes to NumberOfThreads
Microsoft.ML.AutoML (7)
SweepableEstimator\Estimators\FastForest.cs (3)
20NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(), 38NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(), 57NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
SweepableEstimator\Estimators\FastTree.cs (4)
22NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(), 45NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(), 68NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(), 91NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
2177NumberOfThreads = 1,
Microsoft.ML.IntegrationTests (8)
Evaluation.cs (2)
177.Append(mlContext.Ranking.Trainers.FastTree(new FastTreeRankingTrainer.Options { NumberOfThreads = 1 })); 271.Append(mlContext.Regression.Trainers.FastForest(new FastForestRegressionTrainer.Options { NumberOfThreads = 1 }));
IntrospectiveTraining.cs (2)
40new FastForestRegressionTrainer.Options { NumberOfLeaves = 5, NumberOfTrees = 3, NumberOfThreads = 1 })); 84new FastTreeBinaryTrainer.Options { NumberOfLeaves = 5, NumberOfTrees = 3, NumberOfThreads = 1 }));
ModelFiles.cs (2)
50new FastTreeRegressionTrainer.Options { NumberOfThreads = 1, NumberOfTrees = 10 })); 97new FastTreeRegressionTrainer.Options { NumberOfThreads = 1, NumberOfTrees = 10 }));
ONNX.cs (1)
44new FastTreeRegressionTrainer.Options { NumberOfThreads = 1, NumberOfTrees = 10 }));
Training.cs (1)
49new FastTreeBinaryTrainer.Options { NumberOfThreads = 1 });
Microsoft.ML.Samples (1)
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
41NumberOfThreads = 1,
Microsoft.ML.Tests (24)
CalibratedModelParametersTests.cs (1)
73new FastTreeBinaryTrainer.Options { NumberOfThreads = 1 }).Fit(data);
Scenarios\OvaTest.cs (1)
107mlContext.BinaryClassification.Trainers.FastTree(new FastTreeBinaryTrainer.Options { NumberOfThreads = 1 }),
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (15)
28NumberOfThreads = 1, 135NumberOfThreads = 1, 187NumberOfThreads = 1, 242NumberOfThreads = 1, 310NumberOfThreads = 1, 359NumberOfThreads = 1, 398NumberOfThreads = 1, 437NumberOfThreads = 1, 475NumberOfThreads = 1, 513NumberOfThreads = 1, 551NumberOfThreads = 1, 589NumberOfThreads = 1, 644NumberOfThreads = 1, 718NumberOfThreads = 1, 776NumberOfThreads = 1,
TrainerEstimators\TreeEstimators.cs (7)
44NumberOfThreads = 1, 217new FastTreeRegressionTrainer.Options { NumberOfTrees = 10, NumberOfThreads = 1, NumberOfLeaves = 5 }); 910new FastTreeRegressionTrainer.Options { NumberOfTrees = 10, NumberOfThreads = 1, NumberOfLeaves = 5 }); 928new FastForestRegressionTrainer.Options { NumberOfTrees = 10, NumberOfThreads = 1, NumberOfLeaves = 5 }); 946new FastTreeTweedieTrainer.Options { NumberOfTrees = 10, NumberOfThreads = 1, NumberOfLeaves = 5 }); 989new FastTreeBinaryTrainer.Options { NumberOfTrees = 2, NumberOfThreads = 1, NumberOfLeaves = 5 })); 1007new FastForestBinaryTrainer.Options { NumberOfTrees = 2, NumberOfThreads = 1, NumberOfLeaves = 4, CategoricalSplit = true }));
8 references to NumberOfThreads
Microsoft.ML.FastTree (8)
FastTree.cs (1)
185InitializeThreads(FastTreeTrainerOptions.NumberOfThreads ?? Environment.ProcessorCount);
FastTreeArguments.cs (3)
620ectx.CheckUserArg(NumberOfThreads == null || NumberOfThreads > 0, nameof(NumberOfThreads), "Must be positive.");
RandomForestClassification.cs (2)
278if (FastTreeTrainerOptions.NumberOfThreads.HasValue) 279numberOfThreads = FastTreeTrainerOptions.NumberOfThreads.Value;
RandomForestRegression.cs (2)
410if (FastTreeTrainerOptions.NumberOfThreads.HasValue) 411numberOfThreads = FastTreeTrainerOptions.NumberOfThreads.Value;