Struct prophet::topology::TopologyBuilder
[−]
[src]
pub struct TopologyBuilder { /* fields omitted */ }
Used to build topologies and do some minor compile-time and runtime checks to enforce validity of the topology as a shape for neural nets.
Can be used by Mentor
types to train it and become a trained neural network
with which the user can predict data.
Methods
impl TopologyBuilder
[src]
fn layer(self, layer_size: usize, act: Activation) -> TopologyBuilder
[src]
Adds a hidden layer to this topology with the given amount of neurons.
Bias-Neurons are implicitely added!
Panics
If layer_size
is zero.
fn layers(self, layers: &[(usize, Activation)]) -> TopologyBuilder
[src]
Adds some hidden layers to this topology with the given amount of neurons.
Bias-Neurons are implicitely added!
Panics
If any of the specified layer sizes is zero.
fn output(self, layer_size: usize, act: Activation) -> Topology
[src]
Finishes constructing a topology by defining its output layer neurons.
Bias-Neurons are implicitely added!
Panics
If layer_size
is zero.
Trait Implementations
impl Debug for TopologyBuilder
[src]
impl Clone for TopologyBuilder
[src]
fn clone(&self) -> TopologyBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TopologyBuilder
[src]
fn eq(&self, __arg_0: &TopologyBuilder) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TopologyBuilder) -> bool
[src]
This method tests for !=
.