Skip to content

Commit ddc49cc

Browse files
authored
Fix typos in docs about options (#566)
1 parent 7682e89 commit ddc49cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/axon/losses.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ defmodule Axon.Losses do
8383
* `:reduction` - reduction mode. One of `:mean`, `:sum`, or `:none`.
8484
Defaults to `:none`.
8585
86-
* `:negative_weights` - class weight for `0` class useful for scaling loss
86+
* `:negative_weight` - class weight for `0` class useful for scaling loss
8787
by importance of class. Defaults to `1.0`.
8888
89-
* `:positive_weights` - class weight for `1` class useful for scaling loss
89+
* `:positive_weight` - class weight for `1` class useful for scaling loss
9090
by importance of class. Defaults to `1.0`.
9191
9292
* `:from_logits` - whether `y_pred` is a logits tensor. Defaults to `false`.

0 commit comments

Comments
 (0)