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)];
271
for (int i = 0; i <
_numClasses
; i++)
283
_outputType = new VectorDataViewType(NumberDataViewType.Single,
_numClasses
);
292
Host.CheckDecode(
_numClasses
> 0);
294
long count = (long)
_numClasses
* (
_numClasses
+ 1) / 2;
300
for (int i = 0; i <
_numClasses
; i++)
311
_outputType = new VectorDataViewType(NumberDataViewType.Single,
_numClasses
);
360
ctx.Writer.Write(
_numClasses
);
363
for (int i = 0; i <
_numClasses
; i++)
378
for (int i = 0; i <
_numClasses
; i++)
385
Contracts.Assert(output.Length >=
_numClasses
);
391
for (int i = 0; i <
_numClasses
; i++)
398
for (int i = 0; i <
_numClasses
; i++)
411
for (int j = i + 1; j <
_numClasses
; j++)
439
for (int j = i + 1; j <
_numClasses
; j++)
449
return pii / Math.Max(pii, sum - (
_numClasses
- 2) * pii);
454
Host.Assert(0 <= j && j <= i && i <
_numClasses
);
485
var editor = VBufferEditor.Create(ref dst,
_numClasses
);