Skip to content

Questions Encountered While Learning PySR #800

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

You must be logged in to vote

Is it possible to use PySR for regression to derive a function with a single input and single output? When I tried using a single input feature, I ran into an error indicating that at least two features are required.

Yes just make sure the data is shaped (num_examples, 1).

If I want to fit the data using polynomials, how should I configure PySR? Is it sufficient to set binary_operators=["+", "-", "*", "/"] and leave unary_operators as an empty list, or are there additional settings I need to consider for polynomial fitting?

Yes and I might also remove the division operator. Check out the examples page in the doc as it has some helpful discussion.

What adjustments can I make to improv…

Replies: 1 comment

Comment options

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