2 writes to TrainedEnsemble
Microsoft.ML.FastTree (2)
FastTree.cs (2)
2846
TrainedEnsemble
= trainedEnsemble;
2874
TrainedEnsemble
= new InternalTreeEnsemble(ctx, usingDefaultValues, categoricalSplits);
32 references to TrainedEnsemble
Microsoft.ML.FastTree (32)
FastTree.cs (20)
2791
int ITreeEnsemble.NumTrees =>
TrainedEnsemble
.NumTrees;
2875
MaxSplitFeatIdx =
TrainedEnsemble
.GetMaxFeatureIndex();
2905
TrainedEnsemble
.Save(ctx);
2928
dst = (float)
TrainedEnsemble
.GetOutput(in src);
2956
TrainedEnsemble
.GetFeatureContributions(in src, ref dst, ref builder);
2984
var ensembleIni = FastTreeIniFileUtils.TreeEnsembleToIni(Host,
TrainedEnsemble
, schema, calibrator,
2993
return
TrainedEnsemble
.AsPfa(ctx, input);
3065
foreach (var tree in
TrainedEnsemble
.Trees)
3148
var gainMap = new FeatureToGainMap(
TrainedEnsemble
.Trees.ToList(), normalize: true);
3186
foreach (InternalRegressionTree tree in
TrainedEnsemble
.Trees)
3237
FeatureToGainMap gainMap = new FeatureToGainMap(
TrainedEnsemble
.Trees.ToList(), normalize: true);
3257
return
TrainedEnsemble
.Trees.Select(k => new Tree(k)).ToArray();
3263
return (float)
TrainedEnsemble
.GetTreeAt(treeId).LeafValue(leafId);
3274
return
TrainedEnsemble
.GetTreeAt(treeId).GetLeaf(in features, ref path);
3386
var trees =
TrainedEnsemble
.Trees.Select(tree => new RegressionTree(tree));
3387
var treeWeights =
TrainedEnsemble
.Trees.Select(tree => tree.Weight);
3388
return new RegressionTreeEnsemble(trees, treeWeights,
TrainedEnsemble
.Bias);
3432
var trees =
TrainedEnsemble
.Trees.Select(tree => new QuantileRegressionTree((InternalQuantileRegressionTree)tree));
3433
var treeWeights =
TrainedEnsemble
.Trees.Select(tree => tree.Weight);
3434
return new QuantileRegressionTreeEnsemble(trees, treeWeights,
TrainedEnsemble
.Bias);
RandomForestRegression.cs (4)
225
var numTrees = ctx.AddInitializer((float)
TrainedEnsemble
.NumTrees, "NumTrees");
240
dst = (float)
TrainedEnsemble
.GetOutput(in src) /
TrainedEnsemble
.NumTrees;
250
var distribution =
TrainedEnsemble
.GetDistribution(in src, _quantileSampleCount, out weights);
TreeEnsemble\TreeEnsembleCombiner.cs (1)
65
foreach (var t in tree.
TrainedEnsemble
.Trees)
TreeEnsembleFeaturizer.cs (7)
118
var treeValueType = new VectorDataViewType(NumberDataViewType.Single, owner._ensemble.
TrainedEnsemble
.NumTrees);
129
var pathIdType = new VectorDataViewType(NumberDataViewType.Single, owner._totalLeafCount - owner._ensemble.
TrainedEnsemble
.NumTrees);
249
_ectx.Assert(ensemble.
TrainedEnsemble
.NumTrees > 0);
252
_numTrees = _ensemble.
TrainedEnsemble
.NumTrees;
476
var numTrees = _ensemble.
TrainedEnsemble
.NumTrees;
487
var numTrees = _ensemble.
TrainedEnsemble
.NumTrees;
504
var numTrees = _ensemble.
TrainedEnsemble
.NumTrees;