Struct neural_lib::Network
source · pub struct Network {
pub inputs: Vec<f64>,
pub output: Layer,
/* private fields */
}
Expand description
Define a Neural Network
Fields§
§inputs: Vec<f64>
§output: Layer
Implementations§
source§impl Network
impl Network
pub fn new( nb_lay: usize, lays_params: Vec<Vec<(f64, f64)>>, lays_fn: Vec<Activate> ) -> Network
pub fn default(nb_lay: usize, nb_n: u32, lays_fn: Vec<Activate>) -> Network
sourcepub fn prediction(&mut self) -> Vec<f64>
pub fn prediction(&mut self) -> Vec<f64>
Launching a prediction with values -> This function can be call manually or by the training session
Auto Trait Implementations§
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more