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

> How's AD different from simply calling the function with a slightly perturbed input and observing how much the output changes?

AD gives a more precise result, as AD calculates the value of the derivative at the point you want without any perturbed input. AD is also faster, as calculating the value of the derivative usually requires about the same number of elementary operations as calculating the value of the function. Whereas with finite difference you need to calculate the function twice.



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

Search: