We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d0f91c commit 708a35bCopy full SHA for 708a35b
1 file changed
try1 (OOP Approach)/rust/src/main.rs
@@ -1,5 +1,13 @@
1
mod mlp;
2
fn main() {
3
- let layer = mlp::Layer::new(65000, 20);
4
- layer.show_neurons();
+ let mut layers: Vec<u16> = Vec::new();
+ let mut inputs: Vec<f32> = Vec::new();
5
+ layers.push(40);
6
+ layers.push(20);
7
+ inputs.push(0.12);
8
+ inputs.push(0.42);
9
+ inputs.push(0.11);
10
+ let mut mlp = mlp::Mlp::new(10, &layers, 0.03);
11
+ mlp.describe();
12
+ mlp.feed_forward(&inputs);
13
}
0 commit comments