generated from OBJNULL/Dockerized-Rust
Updated Main code
This commit is contained in:
parent
d7075bce86
commit
e62131ba1f
1 changed files with 21 additions and 1 deletions
|
@ -1,6 +1,26 @@
|
||||||
// Libraries
|
// Libraries
|
||||||
|
mod config;
|
||||||
|
mod neural;
|
||||||
|
use neural::NeuralNetwork;
|
||||||
|
|
||||||
|
use std::error::Error;
|
||||||
|
|
||||||
// Entry-Point
|
// Entry-Point
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
// Getting Running Mode First
|
||||||
|
let operation_mode = config::get_operation_mode();
|
||||||
|
|
||||||
|
// Creating a Neural Network
|
||||||
|
let neural: NeuralNetwork;
|
||||||
|
|
||||||
|
// Creating a Neural Network with the Operation Mode
|
||||||
|
match operation_mode {
|
||||||
|
None => panic!("Main: `OperationMode` not defined!"),
|
||||||
|
Some(mode) => {
|
||||||
|
neural = NeuralNetwork::new(mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Starting the network
|
||||||
|
neural.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue