Skip to content

Can PySR constrain the formula with shared f(X) and g(X) in numerator and denominator? #895

Answered by gm89uk
Swoswowordnewnew asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, yes you can with templateExpressionSpec:

Have a look at the example here:
https://astroautomata.com/PySR/api/#pysr.TemplateExpressionSpec

You can define f_predict and g_predict and use those variables again to return the exact form above, something like here: #865 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Swoswowordnewnew
Comment options

Answer selected by Swoswowordnewnew
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