1 write to Ensemble
Microsoft.ML.FastTree (1)
FastTree.cs (1)
470
Ensemble
= new InternalTreeEnsemble();
29 references to Ensemble
Microsoft.ML.FastTree (29)
BoostingFastTree.cs (5)
84
optimizationAlgorithm = new GradientDescent(
Ensemble
, TrainSet, InitTrainScores, gradientWrapper);
87
optimizationAlgorithm = new AcceleratedGradientDescent(
Ensemble
, TrainSet, InitTrainScores, gradientWrapper);
90
optimizationAlgorithm = new ConjugateGradientDescent(
Ensemble
, TrainSet, InitTrainScores, gradientWrapper);
149
bestIteration =
Ensemble
.NumTrees;
156
int bestIteration =
Ensemble
.NumTrees;
FastTree.cs (17)
233
TrainedEnsemble =
Ensemble
;
242
bestIteration =
Ensemble
.NumTrees;
245
private protected virtual int GetBestIteration(IChannel ch) =>
Ensemble
.NumTrees;
330
if (
Ensemble
.NumTrees == 0)
614
if (
Ensemble
.NumTrees < numTotalTrees && ShouldRandomStartOptimizer())
648
pch.SetHeader(new ProgressHeader("trees"), e => e.SetProgress(0,
Ensemble
.NumTrees, numTotalTrees));
649
while (
Ensemble
.NumTrees < numTotalTrees)
661
if (FastTreeTrainerOptions.BaggingSize > 0 &&
Ensemble
.NumTrees % FastTreeTrainerOptions.BaggingSize == 0)
684
else if (FastTreeTrainerOptions.BaggingSize > 0 &&
Ensemble
.Trees.Count() > 0)
686
ch.Assert(
Ensemble
.Trees.Last() == tree);
687
Ensemble
.Trees.Last()
751
Ensemble
.NumTrees, bestIteration);
762
Ensemble
.PopulateRawThresholds(TrainSet);
791
int iteration =
Ensemble
.NumTrees;
798
if (FastTreeTrainerOptions.TestFrequency != int.MaxValue && (
Ensemble
.NumTrees % FastTreeTrainerOptions.TestFrequency == 0 ||
Ensemble
.NumTrees == FastTreeTrainerOptions.NumberOfTrees))
864
Ensemble
.GetOutputs(set, scores);
FastTreeRanking.cs (4)
354
lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini",
Ensemble
.NumTrees - 1);
399
double[] trainOutputs =
Ensemble
.GetTreeAt(
Ensemble
.NumTrees - 1).GetOutputs(TrainSet);
400
_ensembleCompressor.SetTreeScores(
Ensemble
.NumTrees - 1, trainOutputs);
FastTreeRegression.cs (1)
377
lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini",
Ensemble
.NumTrees - 1);
FastTreeTweedie.cs (1)
313
lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini",
Ensemble
.NumTrees - 1);
RandomForest.cs (1)
46
var optimizationAlgorithm = new RandomForestOptimizer(
Ensemble
, TrainSet, InitTrainScores, gradientWrapper);