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