23 writes to NumberOfThreads
Microsoft.ML.AutoML (4)
SweepableEstimator\Estimators\Lbfgs.cs (4)
20
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
38
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
56
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
74
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
Microsoft.ML.Core.Tests (3)
UnitTests\TestEntryPoints.cs (3)
2162
NumberOfThreads
= 1,
4253
NumberOfThreads
= 1,
4263
NumberOfThreads
= 1,
Microsoft.ML.IntegrationTests (10)
Evaluation.cs (2)
97
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }));
303
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }));
Prediction.cs (3)
53
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }));
84
new Trainers.LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 });
107
new Trainers.LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 });
Training.cs (5)
228
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 10 });
271
new LbfgsMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 10 });
366
new LbfgsPoissonRegressionTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 100 });
454
new LbfgsLogisticRegressionBinaryTrainer.Options { MaximumNumberOfIterations = 10,
NumberOfThreads
= 1, });
485
new LbfgsLogisticRegressionBinaryTrainer.Options { MaximumNumberOfIterations = 10,
NumberOfThreads
= 1, });
Microsoft.ML.Samples (1)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
32
NumberOfThreads
= 1
Microsoft.ML.Tests (5)
CalibratedModelParametersTests.cs (1)
28
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }).Fit(data);
FeatureContributionTests.cs (1)
97
new LbfgsPoissonRegressionTrainer.Options {
NumberOfThreads
= 1 }), GetSparseDataset(numberOfInstances: 100), "PoissonRegression");
OnnxConversionTest.cs (1)
631
Append(mlContext.MulticlassClassification.Trainers.LbfgsMaximumEntropy(new LbfgsMaximumEntropyMulticlassTrainer.Options() {
NumberOfThreads
= 1 }));
PermutationFeatureImportanceTests.cs (2)
343
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }).Fit(data);
417
new LbfgsLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }).Fit(data);
7 references to NumberOfThreads
Microsoft.ML.StandardTrainers (7)
Standard\LogisticRegression\LbfgsPredictorBase.cs (7)
244
Host.CheckUserArg(!LbfgsTrainerOptions.UseThreads || LbfgsTrainerOptions.
NumberOfThreads
> 0 || LbfgsTrainerOptions.
NumberOfThreads
== null,
245
nameof(LbfgsTrainerOptions.
NumberOfThreads
), "Must be positive (or empty for default)");
252
Host.CheckUserArg(LbfgsTrainerOptions.
NumberOfThreads
== null || LbfgsTrainerOptions.
NumberOfThreads
.Value >= 0, nameof(LbfgsTrainerOptions.
NumberOfThreads
), "Must be non-negative");
268
NumThreads = LbfgsTrainerOptions.
NumberOfThreads
;