| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.100.1/docs/handbook/_sources/libraries/gradient_boosting_regression.rst.txt |
.. _library_gradient_boosting_regression:
gradient_boosting_regressionGradient boosting regression supporting continuous and mixed-feature datasets. Builds an additive ensemble of regression trees by repeatedly fitting the current residuals under squared-error loss. Starts from the arithmetic mean of the training targets and then adds a scaled tree prediction at each boosting stage.
The library implements the regressor_protocol defined in the
regression_protocols library and learns an additive ensemble of
regression trees by repeatedly fitting the current residuals under
squared-error loss.
Open the `../../apis/library_index.html#gradient_boosting_regression <../../apis/library_index.html#gradient_boosting_regression>`__ link in a web browser.
To load this library, load the loader.lgt file:
::
| ?- logtalk_load(gradient_boosting_regression(loader)).
To test this library predicates, load the tester.lgt file:
::
| ?- logtalk_load(gradient_boosting_regression(tester)).
To run the performance benchmark suite, load the
tester_performance.lgt file:
::
| ?- logtalk_load(gradient_boosting_regression(tester_performance)).
The learned regressor is represented by default as:
gradient_boosting_regressor(InitialPrediction, WeightedTrees, Diagnostics)
The exported predicate clauses therefore use the shape:Functor(InitialPrediction, WeightedTrees, Diagnostics)
In this representation, WeightedTrees contains
weighted_tree(LearningRate, Tree) terms and Diagnostics stores
training metadata including the effective options.The diagnostics/2 predicate returns a list of metadata terms with the form:
::
[
model(gradient_boosting_regression),
target(Target),
training_example_count(TrainingExampleCount),
options(Options),
initial_prediction(InitialPrediction),
stage_count(StageCount)
]
Where:
model(gradient_boosting_regression) identifies the learning
algorithm that produced the regressor.target(Target) stores the target attribute name declared by the
training dataset.training_example_count(TrainingExampleCount) stores the number of
examples used during training.options(Options) stores the effective learning options after
merging the user options with the library defaults.initial_prediction(InitialPrediction) stores the constant
prediction used to initialize the additive model before fitting any
trees.stage_count(StageCount) stores the number of boosting stages that
were actually fitted.
Use the regression_protocols diagnostic/2 and
regressor_options/2 helper predicates when you only need a single
metadata term or the effective options.
The learn/3 predicate accepts the following options:
50. Training can stop before reaching this limit when the residual
sum of squares becomes negligible.0.1.3.1.0.0.true
and false. The default is false.