generated from maddoxwerts/Dockerized-Rust
20 lines
401 B
Rust
20 lines
401 B
Rust
// Libraries
|
|
mod config;
|
|
use config::Config;
|
|
mod neural;
|
|
use neural::NeuralNetwork;
|
|
|
|
// Entry-Point
|
|
fn main() {
|
|
// Reading configuration
|
|
let config: Config = Config::new();
|
|
|
|
// Creating a Neural Network
|
|
let neural: NeuralNetwork;
|
|
|
|
// Creating a Neural Network with the Operation Mode
|
|
neural = NeuralNetwork::new(config.mode);
|
|
|
|
// Starting the network
|
|
neural.start();
|
|
}
|