eqdisco.analysis.cross_validate_search#
- eqdisco.analysis.cross_validate_search(estimator, X, y, cv=5, random_state=0, simplify_equations=True)[source]#
k-fold cross-validation of an equation search.
Returns a table with one row per fold (equation, size, train and test \(R^2\) and MSE) and a summary dictionary: mean and standard deviation of the test \(R^2\), the structural agreement of the fold equations (
structure_agreement()) and the share of folds that use each variable.