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

25 lines
531 B
Rust
Raw Normal View History

2025-03-17 08:55:41 -05:00
// Libraries
2025-03-17 09:15:02 -05:00
mod config;
mod neural;
use neural::NeuralNetwork;
2025-03-17 08:55:41 -05:00
// Entry-Point
2025-03-17 08:51:34 -05:00
fn main() {
2025-03-17 09:15:02 -05:00
// 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();
2025-03-17 08:51:34 -05:00
}