1 write to _numFeatures
Microsoft.ML.FastTree (1)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
60
_numFeatures
= numTrees;
26 references to _numFeatures
Microsoft.ML.FastTree (26)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (26)
65
int maxObservations = (int)(MaxAvailableMemory /
_numFeatures
/ sizeof(float));
67
if (_numObservations > MaxObservationsTOFeaturesRatio *
_numFeatures
)
69
_numObservations = MaxObservationsTOFeaturesRatio *
_numFeatures
;
73
_observations = new float[
_numFeatures
][];
74
for (int t = 0; t <
_numFeatures
; t++)
173
maxAllowedFeaturesPerModel =
_numFeatures
;
176
int maxAllowedFeaturesAlongPath = (int)Math.Min(maxAllowedFeaturesPerModel * 1.2,
_numFeatures
);
181
double flmin = (_numObservations <
_numFeatures
? 5e-2 : 1e-4);
188
double[] featureMeans = new double[
_numFeatures
];
189
double[] featureStds = new double[
_numFeatures
];
190
double[] feature2residualCorrelations = new double[
_numFeatures
];
193
for (int j = 0; j <
_numFeatures
; j++)
226
for (int j = 0; j <
_numFeatures
; j++)
231
double[][] feature2featureCorrelations = VectorUtils.AllocateDoubleMatrix(
_numFeatures
, maxAllowedFeaturesAlongPath);
232
double[] activeWeights = new double[
_numFeatures
];
233
int[] correlationCacheIndices = new int[
_numFeatures
];
234
double[] denseActiveSet = new double[
_numFeatures
];
236
LassoFit fit = new LassoFit(numberOfLambdas, maxAllowedFeaturesAlongPath,
_numFeatures
);
261
for (int j = 0; j <
_numFeatures
; j++)
285
for (int k = 0; k <
_numFeatures
; k++)
311
for (int j = 0; j <
_numFeatures
; j++)
341
for (int j = 0; j <
_numFeatures
; j++)
386
for (int j = 0; j <
_numFeatures
; j++)
485
bestIteration =
_numFeatures
;
488
if (bestIteration ==
_numFeatures
)
506
if (_sampleObservationIndices == null || bestIteration !=
_numFeatures
)