Skip to content

[Feature]: Training and testing splitting. #778

Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by VittoriaOssanna
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #777 on December 12, 2024 14:39.