2 writes to _numClasses
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
268_numClasses = predictors.Length; 291_numClasses = ctx.Reader.ReadInt32();
20 references to _numClasses
Microsoft.ML.StandardTrainers (20)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (20)
269_predictors = new TDistPredictor[checked(_numClasses * (_numClasses + 1) / 2)]; 271for (int i = 0; i < _numClasses; i++) 283_outputType = new VectorDataViewType(NumberDataViewType.Single, _numClasses); 292Host.CheckDecode(_numClasses > 0); 294long count = (long)_numClasses * (_numClasses + 1) / 2; 300for (int i = 0; i < _numClasses; i++) 311_outputType = new VectorDataViewType(NumberDataViewType.Single, _numClasses); 360ctx.Writer.Write(_numClasses); 363for (int i = 0; i < _numClasses; i++) 378for (int i = 0; i < _numClasses; i++) 385Contracts.Assert(output.Length >= _numClasses); 391for (int i = 0; i < _numClasses; i++) 398for (int i = 0; i < _numClasses; i++) 411for (int j = i + 1; j < _numClasses; j++) 439for (int j = i + 1; j < _numClasses; j++) 449return pii / Math.Max(pii, sum - (_numClasses - 2) * pii); 454Host.Assert(0 <= j && j <= i && i < _numClasses); 485var editor = VBufferEditor.Create(ref dst, _numClasses);