|
|
|
|
|
by chillee
2478 days ago
|
|
If statements aren't really meaningfully differentiable, regardless of how you do it. Take if x == 59:
return 1000
else if x > 59:
return -x
else:
return x
How do you optimize this to maximize x, regardless of what language you're in?It's true that you can get a derivative, but the derivative is essentially meaningless. |
|