You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -384,28 +384,31 @@ auto new_loss = CreateNumDiffFunc1(x, original_loss);
384
384
second or pseudo-second order methods, which use both gradient and Hessian.
385
385
386
386
### Losses, Norms and Robust Norms
387
-
You can play with different losses, robust norms and M-estimators, have a look at the `loss` fold er.
387
+
You can play with different losses, activation functions, robust norms and M-estimators, have a look at the `losses` folder.
388
388
389
389
All losses and other norms follow the signature: `Name(x, export_or_jacobian)` or `Name(x, threshold, export_or_jacobian)` for robust norms.
390
390
391
-
* `export_or_jacobian` is either skipped and the loss/norm will be the only output of the function.
392
-
* If it is `true`, the Jacobian of the loss will be returned as well as the loss.
393
-
* Finally, if it is a matrix/vector representing a forward Jacobian, then the second returned value will be the transformed Jacobian using the chain rule.
391
+
`export_or_jacobian` is either
392
+
* `nullptr` or skipped and the loss/norm will be the only output of the function.
393
+
* `true`, the Jacobian of the loss will be returned as well as the loss.
394
+
* a matrix/vector representing a forward Jacobian, then the second returned value will be the transformed Jacobian using the chain rule.
0 commit comments