base.base_ensemble

Base functions and classes for ensemble models using hyperbox-based models.

class hbbrain.base.base_ensemble.BaseEnsemble(base_estimator, *, n_estimators=10, estimator_params=())[source]

Base class for all ensemble classes. Warning: This class should not be used directly. Use derived classes instead.

Parameters:
base_estimatorobject

The base estimator from which the ensemble is built.

n_estimatorsint, default=10

The number of estimators in the ensemble.

estimator_paramslist of str, default=tuple()

The list of attributes to use as parameters when instantiating a new base estimator. If none are given, default parameters are used.

Attributes:
base_estimator_estimator

The base estimator from which the ensemble is grown.

estimators_list of estimators

The collection of fitted base estimators.

Methods

get_params([deep])

Get parameters for this estimator.

set_params(**params)

Set the parameters of this estimator.