Skip to content

Commit 7682e89

Browse files
improved doc formatting by fixing indentation and escape characters (#565)
1 parent 1857e49 commit 7682e89

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

lib/axon.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ defmodule Axon do
143143
parameters and possibly state. To define a custom layer, you just need to
144144
define a `defn` implementation:
145145
146-
defn my_layer(x, weight, _opts \\ []) do
146+
defn my_layer(x, weight, _opts \\\\ []) do
147147
Nx.atan2(x, weight)
148148
end
149149

lib/axon/layers.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ defmodule Axon.Layers do
14571457
* `:rate` - dropout rate. Used to determine probability a connection
14581458
will be dropped. Required.
14591459
1460-
# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
1460+
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
14611461
for broadcasting `mask` across feature channels or other dimensions.
14621462
Defaults to shape of input tensor.
14631463
@@ -1492,7 +1492,7 @@ defmodule Axon.Layers do
14921492
* `:rate` - dropout rate. Used to determine probability a connection
14931493
will be dropped. Required.
14941494
1495-
# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
1495+
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
14961496
for broadcasting `mask` across feature channels or other dimensions.
14971497
Defaults to shape of input tensor.
14981498
@@ -1536,7 +1536,7 @@ defmodule Axon.Layers do
15361536
* `:rate` - dropout rate. Used to determine probability a connection
15371537
will be dropped. Required.
15381538
1539-
# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
1539+
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
15401540
for broadcasting `mask` across feature channels or other dimensions.
15411541
Defaults to shape of input tensor.
15421542
"""

lib/axon/loop.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ defmodule Axon.Loop do
186186
Axon loops are typically created from one of the factory functions provided in this
187187
module:
188188
189-
* `Axon.Loop.loop/3` - Creates a loop from step function and optional initialization
189+
* `Axon.Loop.loop/3` - Creates a loop from step function and optional initialization
190190
functions and output transform functions.
191191
192-
* `Axon.Loop.trainer/3` - Creates a supervised training loop from model, loss, and
192+
* `Axon.Loop.trainer/3` - Creates a supervised training loop from model, loss, and
193193
optimizer.
194194
195-
* `Axon.Loop.evaluator/1` - Creates a supervised evaluator loop from model.
195+
* `Axon.Loop.evaluator/1` - Creates a supervised evaluator loop from model.
196196
197197
## Running loops
198198

lib/axon/metrics.ex

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ defmodule Axon.Metrics do
3838
3939
## Argument Shapes
4040
41-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
42-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
41+
* `y_true` - $(d_0, d_1, ..., d_n)$
42+
* `y_pred` - $(d_0, d_1, ..., d_n)$
4343
4444
## Examples
4545
@@ -96,8 +96,8 @@ defmodule Axon.Metrics do
9696
9797
## Argument Shapes
9898
99-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
100-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
99+
* `y_true` - $(d_0, d_1, ..., d_n)$
100+
* `y_pred` - $(d_0, d_1, ..., d_n)$
101101
102102
## Options
103103
@@ -127,8 +127,8 @@ defmodule Axon.Metrics do
127127
128128
## Argument Shapes
129129
130-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
131-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
130+
* `y_true` - $(d_0, d_1, ..., d_n)$
131+
* `y_pred` - $(d_0, d_1, ..., d_n)$
132132
133133
## Options
134134
@@ -285,8 +285,8 @@ defmodule Axon.Metrics do
285285
286286
## Argument Shapes
287287
288-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
289-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
288+
* `y_true` - $(d_0, d_1, ..., d_n)$
289+
* `y_pred` - $(d_0, d_1, ..., d_n)$
290290
291291
## Options
292292
@@ -314,8 +314,8 @@ defmodule Axon.Metrics do
314314
315315
## Argument Shapes
316316
317-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
318-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
317+
* `y_true` - $(d_0, d_1, ..., d_n)$
318+
* `y_pred` - $(d_0, d_1, ..., d_n)$
319319
320320
## Options
321321
@@ -359,8 +359,8 @@ defmodule Axon.Metrics do
359359
360360
## Argument Shapes
361361
362-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
363-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
362+
* `y_true` - $(d_0, d_1, ..., d_n)$
363+
* `y_pred` - $(d_0, d_1, ..., d_n)$
364364
365365
## Examples
366366
@@ -390,8 +390,8 @@ defmodule Axon.Metrics do
390390
391391
## Argument Shapes
392392
393-
* `y_true` - $\(d_0, d_1, ..., d_n\)$
394-
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
393+
* `y_true` - $(d_0, d_1, ..., d_n)$
394+
* `y_pred` - $(d_0, d_1, ..., d_n)$
395395
396396
## Examples
397397

0 commit comments

Comments
 (0)