Skip to content

How to acquire the index of equations picked by model.predict() #459

Answered by MilesCranmer
GodfreyL023 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @GodfreyL023,
Thanks, I am glad to hear it is useful for you.

You can do this as follows:

from pysr.sr import idx_model_selection

idx = idx_model_selection(model.equations_, "best")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GodfreyL023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion
2 participants