Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mechanism to manually do model selection #127

Merged
merged 11 commits into from
Apr 26, 2022

Conversation

MilesCranmer
Copy link
Owner

@MilesCranmer MilesCranmer commented Apr 26, 2022

By passing, for example, model.predict(X, index=2), you will perform a prediction using the 2nd equation in the internal model.equations dataframe. You can view the index of each expression by running print(model), or simply looking at model.equations.

This allows the user to specify their own model selection strategy, and is quite a simple change to the codebase. It also works for the sympy, latex, pytorch, and jax export functions–simply by changing the argument of .get_best to have a row kwarg.

@MilesCranmer MilesCranmer merged commit e7f614d into master Apr 26, 2022
@MilesCranmer MilesCranmer deleted the Manual-model-selection branch April 26, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant