1 type derived from InternalRegressionTree
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalQuantileRegressionTree.cs (1)
11
internal class InternalQuantileRegressionTree :
InternalRegressionTree
5 instantiations of InternalRegressionTree
Microsoft.ML.FastTree (5)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
198
return new
InternalRegressionTree
(NumLeaves);
TreeEnsemble\InternalRegressionTree.cs (3)
172
InternalRegressionTree tree = new
InternalRegressionTree
(2);
188
return new
InternalRegressionTree
(splitFeatures, splitGain, null, rawThresholds, defaultValueForMissing, lteChild, gtChild, leafValues, categoricalSplitFeatures, categoricalSplit);
424
return new
InternalRegressionTree
(ctx, usingDefaultValues, categoricalSplits);
TreeEnsemble\TreeEnsembleCombiner.cs (1)
71
var tNew = new
InternalRegressionTree
(bytes, ref position);
80 references to InternalRegressionTree
Microsoft.ML.FastTree (80)
FastTree.cs (8)
678
var
tree = OptimizationAlgorithm.TrainingIteration(ch, activeFeatures);
784
private protected virtual void CustomizedTrainingIteration(
InternalRegressionTree
tree)
3065
foreach (
var
tree in TrainedEnsemble.Trees)
3186
foreach (
InternalRegressionTree
tree in TrainedEnsemble.Trees)
3202
private void SaveTreeAsCode(
InternalRegressionTree
tree, TextWriter writer, in VBuffer<ReadOnlyMemory<char>> names)
3208
private void ToCSharp(
InternalRegressionTree
tree, TextWriter writer, int node, in VBuffer<ReadOnlyMemory<char>> names)
3279
private readonly
InternalRegressionTree
_regTree;
3281
public Tree(
InternalRegressionTree
regTree)
FastTreeClassification.cs (1)
398
public void AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree,
FastTreeRanking.cs (2)
394
private protected override void CustomizedTrainingIteration(
InternalRegressionTree
tree)
928
void IStepSearch.AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree, DocumentPartitioning partitioning,
FastTreeRegression.cs (1)
447
public void AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree, DocumentPartitioning partitioning, ScoreTracker trainingScores)
FastTreeTweedie.cs (1)
401
public void AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree, DocumentPartitioning partitioning, ScoreTracker trainingScores)
GamModelParameters.cs (4)
452
var
tree = CreateRegressionTree(numLeaves, splitFeatures, treeThresholds, lteChild, gtChild, effects);
458
var
interceptTree = CreateRegressionTree(
527
private static
InternalRegressionTree
CreateRegressionTree(
531
return
InternalRegressionTree
.Create(
RegressionTree.cs (5)
12
/// A container base class for exposing <see cref="
InternalRegressionTree
"/>'s and
22
private readonly
InternalRegressionTree
_tree;
158
internal RegressionTreeBase(
InternalRegressionTree
tree)
174
/// A container class for exposing <see cref="
InternalRegressionTree
"/>'s attributes to users.
181
internal RegressionTree(
InternalRegressionTree
tree) : base(tree) { }
Training\BaggingProvider.cs (1)
83
InternalRegressionTree
tree = ensemble.GetTreeAt(t);
Training\DocumentPartitioning.cs (1)
54
internal DocumentPartitioning(
InternalRegressionTree
tree, Dataset dataset)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
471
InternalRegressionTree
tree = originalEnsemble.GetTreeAt(fit.Indices[i]);
Training\OptimizationAlgorithms\AcceleratedGradientDescent.cs (3)
21
internal override
InternalRegressionTree
TrainingIteration(IChannel ch, bool[] activeFeatures)
32
InternalRegressionTree
tree = base.TrainingIteration(ch, activeFeatures);
55
internal override void UpdateScores(ScoreTracker t,
InternalRegressionTree
tree)
Training\OptimizationAlgorithms\GradientDescent.cs (2)
94
internal override
InternalRegressionTree
TrainingIteration(IChannel ch, bool[] activeFeatures)
98
InternalRegressionTree
tree = TreeLearner.FitTargets(ch, activeFeatures, AdjustTargetsAndSetWeights(ch));
Training\OptimizationAlgorithms\NoOptimizationAlgorithm.cs (2)
28
internal override
InternalRegressionTree
TrainingIteration(IChannel ch, bool[] activeFeatures)
35
InternalRegressionTree
tree = ((RandomForestLeastSquaresTreeLearner)TreeLearner).FitTargets(ch, activeFeatures, weightedTargets,
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (4)
56
internal abstract
InternalRegressionTree
TrainingIteration(IChannel ch, bool[] activeFeatures);
58
internal virtual void UpdateAllScores(IChannel ch,
InternalRegressionTree
tree)
69
internal virtual void UpdateScores(ScoreTracker t,
InternalRegressionTree
tree)
104
protected virtual void SmoothTree(
InternalRegressionTree
tree, double smoothing)
Training\Parallel\IParallelTraining.cs (1)
132
double[] GlobalMean(Dataset dataset,
InternalRegressionTree
tree, DocumentPartitioning partitioning, double[] weights, bool filterZeroLambdas);
Training\Parallel\SingleTrainer.cs (1)
49
double[] IParallelTraining.GlobalMean(Dataset dataset,
InternalRegressionTree
tree, DocumentPartitioning partitioning, double[] weights, bool filterZeroLambdas)
Training\RegressionTreeNodeDocuments.cs (3)
18
internal readonly
InternalRegressionTree
Tree;
24
internal RegressionTreeNodeDocuments(
InternalRegressionTree
tree, DocumentPartitioning partitioning, int nodeIndex)
96
internal RecursiveRegressionTree(
InternalRegressionTree
t, DocumentPartitioning p, int n)
Training\ScoreTracker.cs (5)
41
internal void Initialize(ScoreTracker scores1,
InternalRegressionTree
tree, DocumentPartitioning partitioning, double multiplier)
95
internal virtual void AddScores(
InternalRegressionTree
tree, double multiplier)
103
internal virtual void AddScores(
InternalRegressionTree
tree, DocumentPartitioning partitioning, double multiplier)
167
internal override void AddScores(
InternalRegressionTree
tree, double multiplier)
198
internal override void AddScores(
InternalRegressionTree
tree, DocumentPartitioning partitioning, double multiplier)
Training\StepSearch.cs (4)
13
void AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree, DocumentPartitioning partitioning, ScoreTracker trainingScores);
62
private
InternalRegressionTree
_tree;
66
public void Initialize(
InternalRegressionTree
tree, DocumentPartitioning partitioning, ScoreTracker previousScores)
97
void IStepSearch.AdjustTreeOutputs(IChannel ch,
InternalRegressionTree
tree, DocumentPartitioning partitioning,
Training\TreeLearners\FastForestLeastSquaresTreeLearner.cs (2)
27
protected override
InternalRegressionTree
NewTree()
32
public
InternalRegressionTree
FitTargets(IChannel ch, bool[] activeFeatures, Double[] weightedtargets, Double[] targets, Double[] weights)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (5)
196
protected virtual
InternalRegressionTree
NewTree()
201
protected virtual void MakeDummyRootSplit(
InternalRegressionTree
tree, double rootTarget, double[] targets)
222
internal sealed override
InternalRegressionTree
FitTargets(IChannel ch, bool[] activeFeatures, double[] targets)
228
InternalRegressionTree
tree = NewTree();
284
protected virtual void PerformSplit(
InternalRegressionTree
tree, int bestLeaf, double[] targets, out int lteChild, out int gtChild)
Training\TreeLearners\TreeLearner.cs (1)
26
internal abstract
InternalRegressionTree
FitTargets(IChannel ch, bool[] activeFeatures, double[] targets);
TreeEnsemble\InternalRegressionTree.cs (6)
20
/// Note that <see cref="
InternalRegressionTree
"/> is shared between FastTree and LightGBM assemblies,
21
/// so <see cref="
InternalRegressionTree
"/> has <see cref="BestFriendAttribute"/>.
165
public static
InternalRegressionTree
Create(int numLeaves, int[] splitFeatures, double[] splitGain,
172
InternalRegressionTree
tree = new InternalRegressionTree(2);
418
public static
InternalRegressionTree
Load(ModelLoadContext ctx, bool usingDefaultValues, bool categoricalSplits)
556
public void SumupValue(IChannel ch,
InternalRegressionTree
tree)
TreeEnsemble\InternalTreeEnsemble.cs (13)
26
private readonly List<
InternalRegressionTree
> _trees;
28
public IEnumerable<
InternalRegressionTree
> Trees => _trees;
36
_trees = new List<
InternalRegressionTree
>();
50
_trees = new List<
InternalRegressionTree
>();
54
AddTree(
InternalRegressionTree
.Load(ctx, usingDefaultValues, categoricalSplits));
69
foreach (
InternalRegressionTree
tree in Trees)
75
public void AddTree(
InternalRegressionTree
tree) => _trees.Add(tree);
76
public void AddTreeAt(
InternalRegressionTree
tree, int index) => _trees.Insert(index, tree);
80
public
InternalRegressionTree
GetTreeAt(int index) => _trees[index];
218
foreach (
var
tree in Trees)
356
foreach (
var
tree in _trees)
370
var
tree = _trees[i];
399
public FeatureToGainMap(IList<
InternalRegressionTree
> trees, bool normalize)
TreeEnsemble\TreeEnsembleCombiner.cs (3)
65
foreach (
var
t in tree.TrainedEnsemble.Trees)
71
var
tNew = new InternalRegressionTree(bytes, ref position);
94
foreach (
var
t in ensemble.Trees)