3 writes to _numObservations
Microsoft.ML.FastTree (3)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (3)
66
_numObservations
= Math.Min(_trainSet.NumDocs, maxObservations);
69
_numObservations
= MaxObservationsTOFeaturesRatio * _numFeatures;
129
_numObservations
= obsCount;
17 references to _numObservations
Microsoft.ML.FastTree (17)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (17)
67
if (
_numObservations
> MaxObservationsTOFeaturesRatio * _numFeatures)
76
_observations[t] = new float[
_numObservations
];
82
if (
_numObservations
== _trainSet.NumDocs)
89
_sampleObservationIndices = new int[
_numObservations
];
104
int remainedDocs =
_numObservations
;
121
if (obsCount ==
_numObservations
)
158
for (int i = 0; i <
_numObservations
; i++)
178
ch.Info("Lasso Compression uses {0} observations.",
_numObservations
);
181
double flmin = (
_numObservations
< _numFeatures ? 5e-2 : 1e-4);
192
float factor = (float)(1.0 / Math.Sqrt(
_numObservations
));
201
for (int i = 0; i <
_numObservations
; i++)
217
for (int i = 0; i <
_numObservations
; i++)
496
targetScores = new double[
_numObservations
];
497
for (int d = 0; d <
_numObservations
; d++)
505
_targets = new float[
_numObservations
];
513
for (int i = 0; i <
_numObservations
; i++)
528
for (int i = 0; i <
_numObservations
; i++)