| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.98.0/docs/apis/_sources/ada_boost_0.rst.txt |
.. index:: single: ada_boost .. _ada_boost/0:
.. rst-class:: right
object
ada_boostAdaBoost (Adaptive Boosting) classifier using C4.5 decision trees as base learners. Implements the SAMME (Stagewise Additive Modeling using a Multi-class Exponential loss function) variant, which supports multi-class classification. Builds an ensemble of weighted decision trees where each subsequent tree focuses on the examples misclassified by previous trees.
| Availability:
| logtalk_load(ada_boost(loader))
| Author: Paulo Moura | Version: 1:0:0 | Date: 2026-02-20
| Compilation flags:
| static, context_switching_calls
| Implements:
| public :ref:`classifier_protocol <classifier_protocol/0>`
| Imports:
| public :ref:`options <options/0>`
| Uses:
| :ref:`c45 <c45/0>`
| :ref:`fast_random(Algorithm) <fast_random/1>`
| :ref:`format <format/0>`
| :ref:`list <list/0>`
| :ref:`pairs <pairs/0>`
| :ref:`type <type/0>`
| Remarks:
ab_classifier(WeightedTrees, ClassValues, Options) term where WeightedTrees is a list of weighted_tree(Alpha, Tree, AttributeNames) elements.| Inherited public predicates: | Â :ref:`options_protocol/0::check_option/1` Â :ref:`options_protocol/0::check_options/1` Â :ref:`classifier_protocol/0::classifier_to_clauses/4` Â :ref:`classifier_protocol/0::classifier_to_file/4` Â :ref:`options_protocol/0::default_option/1` Â :ref:`options_protocol/0::default_options/1` Â :ref:`classifier_protocol/0::learn/2` Â :ref:`options_protocol/0::option/2` Â :ref:`options_protocol/0::option/3` Â :ref:`classifier_protocol/0::predict/3` Â :ref:`classifier_protocol/0::print_classifier/1` Â :ref:`options_protocol/0::valid_option/1` Â :ref:`options_protocol/0::valid_options/1` Â
.. contents:: :local: :backlinks: top
.. index:: learn/3 .. _ada_boost/0::learn/3:
learn/3 ^^^^^^^^^^^
Learns a classifier from the given dataset object using the specified options.
| Compilation flags:
| static
| Template:
| learn(Dataset,Classifier,Options)
| Mode and number of proofs:
| learn(+object_identifier,-compound,+list(compound)) - one
.. index:: predict_probabilities/3 .. _ada_boost/0::predict_probabilities/3:
predict_probabilities/3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Predicts class probabilities for a new instance using the learned classifier. Returns a list of Class-Probability pairs sorted by descending probability. Probabilities are derived from the weighted votes of all base learners.
| Compilation flags:
| static
| Template:
| predict_probabilities(Classifier,Instance,Probabilities)
| Mode and number of proofs:
| predict_probabilities(+compound,+list,-list) - one
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)
.. seealso::
:ref:`dataset_protocol <dataset_protocol/0>`, :ref:`c45 <c45/0>`, :ref:`isolation_forest <isolation_forest/0>`, :ref:`knn <knn/0>`, :ref:`naive_bayes <naive_bayes/0>`, :ref:`nearest_centroid <nearest_centroid/0>`, :ref:`random_forest <random_forest/0>`