19 references to NumFeatures
Microsoft.ML.FastTree (19)
Dataset\Dataset.cs (5)
88Contracts.Assert(0 <= feature && feature < NumFeatures); 391Contracts.Assert(activeFeatures == null || activeFeatures.Length >= NumFeatures); 392var truncatedActiveFeatures = Enumerable.Repeat(true, NumFeatures).ToArray(); 394Array.Copy(activeFeatures, 0, truncatedActiveFeatures, 0, NumFeatures); 959Contracts.Assert(active == null || active.Length == dataset.NumFeatures);
FastTree.cs (3)
412var activeFeatures = Utils.CreateArray(TrainSet.NumFeatures, true); 418for (int i = 0; i < TrainSet.NumFeatures; ++i) 433set.NumDocs, set.NumQueries, set.NumFeatures, datasetSize / 1024 / 1024, (datasetSize - skeletonSize) / 1024 / 1024);
GamTrainer.cs (7)
264Host.Assert(FeatureMap == null || FeatureMap.Length == TrainSet.NumFeatures); 350}, TrainSet.NumFeatures); 445BinEffects = new double[TrainSet.NumFeatures][]; 446for (int featureIndex = 0; featureIndex < TrainSet.NumFeatures; featureIndex++) 544BinUpperBounds = new double[TrainSet.NumFeatures][]; 548for (int i = 0; i < TrainSet.NumFeatures; i++) 595_subGraph = new SubGraph(TrainSet.NumFeatures, GamTrainerOptions.NumberOfIterations);
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (4)
170FeatureUseCount = new int[TrainData.NumFeatures]; 582Contracts.Assert(0 <= min && min <= lim && lim <= TrainData.NumFeatures); 842FeatureSplitInfo = new SplitInfo[data.NumFeatures]; 843if (data.NumFlocks < data.NumFeatures / 2)