39 writes to NumberOfThreads
Microsoft.ML.AutoML (4)
SweepableEstimator\Estimators\Sdca.cs (4)
20
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
38
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
56
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
74
NumberOfThreads
= AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
Microsoft.ML.IntegrationTests (9)
DataTransformation.cs (1)
146
new SdcaLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 }));
Debugging.cs (2)
110
new SdcaRegressionTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 20 }));
177
new SdcaRegressionTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 20 }));
Evaluation.cs (2)
68
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 }));
155
new SdcaMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1 }));
IntrospectiveTraining.cs (2)
228
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 }));
437
NumberOfThreads
= 1
ONNX.cs (1)
146
new SdcaRegressionTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 10 }));
Training.cs (1)
46
new SdcaLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 });
Microsoft.ML.PerformanceTests (4)
PredictionEngineBench.cs (3)
60
new SdcaMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1, ConvergenceTolerance = 1e-2f, }));
95
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1, ConvergenceTolerance = 1e-2f, }));
129
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1, ConvergenceTolerance = 1e-2f, });
TextPredictionEngineCreation.cs (1)
31
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 }));
Microsoft.ML.Samples (1)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
41
NumberOfThreads
= 1
Microsoft.ML.Tests (21)
FeatureContributionTests.cs (2)
84
new SdcaRegressionTrainer.Options {
NumberOfThreads
= 1, }), GetSparseDataset(numberOfInstances: 100), "SDCARegression");
160
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1, }), GetSparseDataset(TaskType.BinaryClassification, 100), "SDCABinary", precision: 5);
OnnxConversionTest.cs (2)
83
NumberOfThreads
= 1
579
NumberOfThreads
= 1
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
36
new SdcaMaximumEntropyMulticlassTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1, }))
Scenarios\Api\Estimators\Extensibility.cs (1)
45
new SdcaMaximumEntropyMulticlassTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1 }))
Scenarios\Api\Estimators\MultithreadedPrediction.cs (1)
34
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 }));
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
34
new SdcaMaximumEntropyMulticlassTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1, }));
83
new SdcaMaximumEntropyMulticlassTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1, }));
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (1)
32
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 }));
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
36
new SdcaNonCalibratedBinaryTrainer.Options {
NumberOfThreads
= 1 });
Scenarios\IrisPlantClassificationTests.cs (1)
37
new SdcaMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1 }));
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
41
new SdcaMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1 }))
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
35
new SdcaMaximumEntropyMulticlassTrainer.Options {
NumberOfThreads
= 1 }));
TrainerEstimators\MetalinearEstimators.cs (3)
47
new SdcaNonCalibratedBinaryTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1 });
65
new SdcaNonCalibratedBinaryTrainer.Options { MaximumNumberOfIterations = 100, Shuffle = true,
NumberOfThreads
= 1 });
94
NumberOfThreads
= 1,
TrainerEstimators\SdcaTests.cs (4)
119
new SdcaLogisticRegressionBinaryTrainer.Options {
NumberOfThreads
= 1 });
121
new SdcaLogisticRegressionBinaryTrainer.Options { ExampleWeightColumnName = "Weight",
NumberOfThreads
= 1 });
176
new SdcaMaximumEntropyMulticlassTrainer.Options { LabelColumnName = "LabelIndex",
NumberOfThreads
= 1 }));
180
new SdcaMaximumEntropyMulticlassTrainer.Options { LabelColumnName = "LabelIndex", ExampleWeightColumnName = "Weight",
NumberOfThreads
= 1 }));
4 references to NumberOfThreads
Microsoft.ML.StandardTrainers (4)
Standard\SdcaBinary.cs (4)
226
/// Set to zero or negative value to disable checking. If <see langword="null"/>, it defaults to <see cref="
NumberOfThreads
"/>."
336
if (SdcaTrainerOptions.
NumberOfThreads
.HasValue)
338
numThreads = SdcaTrainerOptions.
NumberOfThreads
.Value;
339
Host.CheckUserArg(numThreads > 0, nameof(OptionsBase.
NumberOfThreads
), "The number of threads must be either null or a positive integer.");