eqdisco.models.SymbolicEnsemble#

class eqdisco.models.SymbolicEnsemble(estimator=None, n_estimators=10, max_samples=1.0, aggregate='median', random_state=None, feature_names=None)[source]#

Bases: BaseEstimator, RegressorMixin

Bootstrap ensemble of any eqdisco regressor.

Parameters:
estimatorestimator, optional

A regressor with an equation_ attribute after fitting (default SymbolicRegressor with a small budget).

n_estimatorsint, default=10
max_samplesfloat, default=1.0

Size of each bootstrap sample as a share of the data.

aggregate{“mean”, “median”}
random_stateint, optional
Attributes:
estimators_list
equations_list of Equation
predict_all(X)[source]#

Predictions of every member, shape (n_estimators, N).

predict_interval(X, coverage=0.9)[source]#

Lower and upper quantiles of the member predictions (model uncertainty only).

structure_frequency(min_support=0.3, max_size=9)[source]#

Building blocks shared by the members (eqdisco.analysis.building_blocks.frequent_building_blocks()).

variable_frequency()[source]#

Share of members that use each variable.