Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved doc formatting by fixing indentation and escape characters #565

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/axon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ defmodule Axon do
parameters and possibly state. To define a custom layer, you just need to
define a `defn` implementation:

defn my_layer(x, weight, _opts \\ []) do
defn my_layer(x, weight, _opts \\\\ []) do
Nx.atan2(x, weight)
end

Expand Down
6 changes: 3 additions & 3 deletions lib/axon/layers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ defmodule Axon.Layers do
* `:rate` - dropout rate. Used to determine probability a connection
will be dropped. Required.

# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
for broadcasting `mask` across feature channels or other dimensions.
Defaults to shape of input tensor.

Expand Down Expand Up @@ -1492,7 +1492,7 @@ defmodule Axon.Layers do
* `:rate` - dropout rate. Used to determine probability a connection
will be dropped. Required.

# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
for broadcasting `mask` across feature channels or other dimensions.
Defaults to shape of input tensor.

Expand Down Expand Up @@ -1536,7 +1536,7 @@ defmodule Axon.Layers do
* `:rate` - dropout rate. Used to determine probability a connection
will be dropped. Required.

# `:noise_shape` - input noise shape. Shape of `mask` which can be useful
* `:noise_shape` - input noise shape. Shape of `mask` which can be useful
for broadcasting `mask` across feature channels or other dimensions.
Defaults to shape of input tensor.
"""
Expand Down
6 changes: 3 additions & 3 deletions lib/axon/loop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ defmodule Axon.Loop do
Axon loops are typically created from one of the factory functions provided in this
module:

* `Axon.Loop.loop/3` - Creates a loop from step function and optional initialization
* `Axon.Loop.loop/3` - Creates a loop from step function and optional initialization
functions and output transform functions.

* `Axon.Loop.trainer/3` - Creates a supervised training loop from model, loss, and
* `Axon.Loop.trainer/3` - Creates a supervised training loop from model, loss, and
optimizer.

* `Axon.Loop.evaluator/1` - Creates a supervised evaluator loop from model.
* `Axon.Loop.evaluator/1` - Creates a supervised evaluator loop from model.

## Running loops

Expand Down
28 changes: 14 additions & 14 deletions lib/axon/metrics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Examples

Expand Down Expand Up @@ -96,8 +96,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Options

Expand Down Expand Up @@ -127,8 +127,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Options

Expand Down Expand Up @@ -285,8 +285,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Options

Expand Down Expand Up @@ -314,8 +314,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Options

Expand Down Expand Up @@ -359,8 +359,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Examples

Expand Down Expand Up @@ -390,8 +390,8 @@ defmodule Axon.Metrics do

## Argument Shapes

* `y_true` - $\(d_0, d_1, ..., d_n\)$
* `y_pred` - $\(d_0, d_1, ..., d_n\)$
* `y_true` - $(d_0, d_1, ..., d_n)$
* `y_pred` - $(d_0, d_1, ..., d_n)$

## Examples

Expand Down
Loading