Model analysis#

Analysis of discovered equations: selection, validation, uncertainty, sensitivity, structure.

  • pareto – Pareto fronts, knee points, hypervolume, model selection;

  • validation – cross-validation of searches, extrapolation tests, residual diagnostics, additive-term tables, learning curves;

  • uncertainty – parameter covariance, Wald, profile and bootstrap intervals, prediction bands;

  • sensitivity – symbolic derivatives, local sensitivities, Sobol indices, permutation importance;

  • building_blocks – frequent subtrees, co-occurrence networks, variable interaction networks, library mining;

  • families – semantic clustering of candidate models.

Pareto tools, validation, uncertainty, sensitivity, building blocks, model families.

Functions#

pareto_front_indices(error, complexity)

Indices of the non-dominated points (both objectives minimized), by increasing complexity.

pareto_front(equations[, X, y, metric])

Non-dominated equations by (error, size); the error is recomputed on (X, y) if given.

knee_index(error, complexity[, log_error])

Knee of a front: the point farthest below the line joining its two extremes.

hypervolume_2d(error, complexity[, ref])

Area dominated by the front and bounded by the reference point ref.

select_model(equations[, rule, X, y, X_val, ...])

Choose one equation from a list (typically a Pareto front).

front_table(equations[, X, y, digits])

Table of a list of equations: complexity, parameters, MSE, \(R^2\), BIC and the formula.

cross_validate_search(estimator, X, y[, cv, ...])

k-fold cross-validation of an equation search.

extrapolation_split(X, y[, variable, quantile])

Split by the value of one variable: samples above the quantile are the test set.

residual_diagnostics(y, yhat[, lags, order])

Statistical tests of the residuals \(e=y-\hat y\).

term_table(equation, X, y)

Additive terms of an equation with their weights, ERR and unique contributions.

learning_curve(estimator, X, y[, sizes, ...])

Train and test \(R^2\) and equation size for growing training sets.

structure_agreement(equations[, max_size])

Mean pairwise Jaccard similarity of the building-block sets of the equations (1 = same structure).

parameter_covariance(equation, X, y)

Asymptotic covariance of the parameters and the residual variance \(\hat\sigma^2\).

confidence_intervals(equation, X, y[, ...])

Confidence intervals of the parameters.

prediction_intervals(equation, X_train, ...)

Delta-method intervals of the model output at X_new.

partial_derivatives(equation[, simplify])

SymPy expressions of \(\partial f/\partial x_j\) for the variables of the equation.

local_sensitivity(equation, X)

Derivative-based sensitivities averaged over the samples X.

sobol_indices(model[, bounds, X, n, ...])

First-order and total Sobol indices on independent uniform inputs.

permutation_importance(equation, X, y[, ...])

Mean and standard deviation of the MSE increase when each variable is permuted.

canonical_subtree(expr[, i, names])

Canonical string of the subtree at i: parameters become c, commutative arguments are sorted.

subtree_counts(models[, min_size, max_size, ...])

Number of models that contain each canonical subtree of min_size..max_size nodes.

frequent_building_blocks(models[, ...])

Subtrees contained in at least min_support share of the models.

building_block_network(models[, ...])

Co-occurrence network of the frequent building blocks.

variable_interaction_network(models[, ...])

Variables linked by their joint occurrence inside nonlinear subtrees.

mine_library(models[, max_blocks, ...])

Frequent building blocks as expressions with free parameters (library learning).

semantic_distance_matrix(equations, X[, metric])

Pairwise distances of the models' predictions on X.

model_families(equations, X[, y, threshold, ...])

Cluster equations into families of (nearly) equivalent models.

family_map(equations, X[, metric, ...])

2-D coordinates of the models: metric MDS (SMACOF) of the semantic distances.

Constants#

SELECTION_RULES

Built-in immutable sequence.