Skip to content
Discussion options

You must be logged in to vote

Here's an implementation which might be what you're looking for: #125

Essentially you have to use sympy.Piecewise, rather than Python's if, in order to get a correct mapping to sympy

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@AKHCE
Comment options

@MilesCranmer
Comment options

@AKHCE
Comment options

@MilesCranmer
Comment options

@AKHCE
Comment options

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