-
consider a simple function with a conditional like...
but i'm more interested in my options for |
Beta Was this translation helpful? Give feedback.
Answered by
hawkinsp
Jan 26, 2021
Replies: 1 comment 1 reply
-
Use code like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matpalm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use code like
jnp.where(x > split, m1*x + b1, m2*x + b2)
in this case. i.e., use predication rather than a conditional.