2 writes to _options
Microsoft.ML.StandardTrainers (2)
Standard\SdcaBinary.cs (2)
1979_options = new OptionsBase(); 2004_options = options;
24 references to _options
Microsoft.ML.StandardTrainers (24)
Standard\SdcaBinary.cs (24)
1949private protected override bool ShuffleData => _options.Shuffle; 1980_options.NumberOfIterations = maxIterations; 1981_options.LearningRate = initLearningRate; 1982_options.L2Regularization = l2Weight; 1984_options.FeatureColumnName = featureColumn; 1985_options.LabelColumnName = labelColumn; 1986_options.ExampleWeightColumnName = weightColumn; 2035if (_options.NumberOfThreads.HasValue) 2037numThreads = _options.NumberOfThreads.Value; 2038ch.CheckUserArg(numThreads > 0, nameof(_options.NumberOfThreads), "The number of threads must be either null or a positive integer."); 2044int checkFrequency = _options.CheckFrequency ?? numThreads; 2047var l2Weight = _options.L2Regularization; 2050var positiveInstanceWeight = _options.PositiveInstanceWeight; 2072if (e % checkFrequency == 0 && e != _options.NumberOfIterations) 2098pch.Checkpoint(loss, improvement, e, _options.NumberOfIterations); 2099converged = improvement < _options.ConvergenceTolerance; 2108var trainingTasks = new Action<Random, IProgressChannel>[_options.NumberOfIterations]; 2109var rands = new Random[_options.NumberOfIterations]; 2110var ilr = _options.LearningRate; 2112for (int epoch = 1; epoch <= _options.NumberOfIterations; epoch++) 2118using (var cursor = _options.Shuffle ? cursorFactory.Create(rand) : cursorFactory.Create()) 2173entry => entry.SetProgress(0, iter, _options.NumberOfIterations)); 2175for (int i = 0; i < _options.NumberOfIterations; i++) 2193Parallel.For(0, _options.NumberOfIterations, pOptions, i => trainingTasks[i](rands[i], pch));