Dockerized-Rust-ML/project/src/main.rs

24 lines
531 B
Rust

// Libraries
mod config;
mod neural;
use neural::NeuralNetwork;
// Entry-Point
fn main() {
// 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();
}