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