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