pub struct NN { /* fields omitted */ }
Each number in the layers_sizes
parameter specifies a
layer in the network. The number itself is the number of nodes in that
layer. The first number is the input layer, the last
number is the output layer, and all numbers between the first and
last are hidden layers. There must be at least two layers in the network.
Runs the network on an input and returns a vector of the results.
The number of f64
s in the input must be the same
as the number of input nodes in the network. The length of the results
vector will be the number of nodes in the output layer of the network.
Takes in vector of examples and returns a Trainer
struct that is used
to specify options that dictate how the training should proceed.
No actual training will occur until the go()
method on the
Trainer
struct is called.
Encodes the network as a JSON string.
Builds a new network from a JSON string.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize a value using an Encoder
.
Deserialize a value using a Decoder
.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more