Skip to content

Commit

Permalink
Create main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jun 2, 2024
1 parent e94201a commit 657d752
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/cosmic_pi_network/neuromorphic_lib/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! Main Function
use neuromorphic_lib::NeuromorphicLib;

fn main() {
let mut lib = NeuromorphicLib::new();
let inputs = vec![1.0, 2.0, 3.0];
let targets = vec![4.0, 5.0, 6.0];
lib.train(&inputs, &targets);
let outputs = lib.run(&inputs);
println!("Outputs: {:?}", outputs);
}

0 comments on commit 657d752

Please sign in to comment.