eqdisco.analysis.model_families#

eqdisco.analysis.model_families(equations, X, y=None, threshold=0.05, n_families=None, metric='nrmse')[source]#

Cluster equations into families of (nearly) equivalent models.

Parameters:
thresholdfloat

Distance at which the dendrogram is cut (ignored if n_families).

n_familiesint, optional
Returns:
labelsndarray of int

Family of every equation (0 = family of the most accurate model… ordered by the error of their best member when y is given).

tablepandas.DataFrame

One row per family: size, representative (simplest member), its complexity, the best error in the family.

linkagendarray

The SciPy linkage matrix (for scipy.cluster.hierarchy.dendrogram()).

Examples using eqdisco.analysis.model_families#

Model families: how many different models do the data support? (new in eqdisco)

Model families: how many different models do the data support? (new in eqdisco)