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

The idea of "find in which direction function decreases most quickly and go that direction" is really deep, and its implementation via this cutting-edge mathematical concept of "gradient" also deserves a whole section as well.


It's both really shallow and really deep.

On one hand, you can explain it to a 5-year-old: Go in the direction which improves things.

On the other hand, we have more than a half-century of research on sophisticated mathematical methods for doing it well.

The latter isn't really helpful for beginners, and the former is easy to explain. You can't use sophisticated algorithms in either case, for beginners, so you can go with something as dumb as tweak in all directions, and go where it improves most. It will work fine for dummy examples.


Look no further: https://jax.readthedocs.io/en/latest/autodidax.html

"Autodidax: JAX core from scratch" walks you through it in detail.




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

Search: