maai_core
maai_core is an open source AI that is written in rust. It is more focused on being lightweight and speedy.
Using the crate
Just make a new instance of Maai
with Maai::new()
and put in the global layer count (including input and output layer), the global input layer neuron count for the first layer (it must match with the payload vector length), the global neuron count (only for hidden layers) and the final output layer count for the last layer.
use maai_core::Maai;
fn main() {
let payload: Vec<f64> = vec![1.0, 1.0, 1.0];
let _my_ai = Maai::new(512, payload.len(), 16, 4);
let result = _my_ai.out(payload);
_my_ai.inspect();
//...
}