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:
- Returns:
- labels
ndarrayofint Family of every equation (0 = family of the most accurate model… ordered by the error of their best member when
yis given).- table
pandas.DataFrame One row per family: size, representative (simplest member), its complexity, the best error in the family.
- linkage
ndarray The SciPy linkage matrix (for
scipy.cluster.hierarchy.dendrogram()).
- labels
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)