MCPcopy Create free account
hub / github.com/daniel-e/rustml / layers

Method layers

src/nn.rs:90–93  ·  view source on GitHub ↗

Returns the number of layers.

(&self)

Source from the content-addressed store, hash-verified

88
89 /// Returns the number of layers.
90 pub fn layers(&self) -> usize {
91
92 self.layers.len()
93 }
94
95 /// Computes the error of the net.
96 pub fn error(&self, examples: &Matrix<f64>, targets: &Matrix<f64>) -> f64 {

Callers 3

add_layerMethod · 0.80
feedforwardMethod · 0.80
backpropMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected