[Feature]: Training and testing splitting. #778
-
Feature RequestGood morning everyone, I am new to PySR, so apologies if the questions I place are naiive. I am trying to implement this feature for my project, and I see that Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use scikit learn’s train test split: https://scikit-learn.org/1.5/modules/generated/sklearn.model_selection.train_test_split.html, and then feed in the train split to Note that hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer! Thank you again! |
Beta Was this translation helpful? Give feedback.
You can use scikit learn’s train test split: https://scikit-learn.org/1.5/modules/generated/sklearn.model_selection.train_test_split.html, and then feed in the train split to
.fit
and the test split to.predict
Note that
.predict
also has a keyword for the equation index so you can test with other ones too. See the docs for more info: https://ai.damtp.cam.ac.uk/pysr/examples/hope this helps!
Best,
Miles