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