2 writes to _ensemble
Microsoft.ML.FastTree (2)
TreeEnsembleFeaturizer.cs (2)
417_ensemble = predictor as TreeEnsembleModelParameters; 436ctx.LoadModel<TreeEnsembleModelParameters, SignatureLoadModel>(env, out _ensemble, "Ensemble");
13 references to _ensemble
Microsoft.ML.FastTree (13)
TreeEnsembleFeaturizer.cs (13)
118var treeValueType = new VectorDataViewType(NumberDataViewType.Single, owner._ensemble.TrainedEnsemble.NumTrees); 129var pathIdType = new VectorDataViewType(NumberDataViewType.Single, owner._totalLeafCount - owner._ensemble.TrainedEnsemble.NumTrees); 189var state = new State(_ectx, input, _owner._ensemble, _owner._totalLeafCount, FeatureColumn.Index); 418_host.Check(_ensemble != null, "Predictor in model file does not have compatible type"); 420_totalLeafCount = CountLeaves(_ensemble); 437_totalLeafCount = CountLeaves(_ensemble); 455_host.AssertValue(_ensemble); 456ctx.SaveModel(_ensemble, "Ensemble"); 476var numTrees = _ensemble.TrainedEnsemble.NumTrees; 487var numTrees = _ensemble.TrainedEnsemble.NumTrees; 492foreach (var tree in ((ITreeEnsemble)_ensemble).GetTrees()) 504var numTrees = _ensemble.TrainedEnsemble.NumTrees; 511foreach (var tree in ((ITreeEnsemble)_ensemble).GetTrees())