Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> automatic differentiation will compute the correct derivative when such a thing is available, and some nonsense answer otherwise

The problem is this is false too. Just modify my example a bit:

  y = x if x > 0 else x if x < 0 else 0
Here we clearly have y'(0) = 1, yet autodiff would seem to give y'(0) = 0.


Good point / example!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: