pub struct RecurrentLayer {
pub n_inputs: usize,
pub n_neurons: usize,
pub w_in: Vec<f64>,
pub w_rec: Vec<f64>,
pub state: Vec<f64>,
}Expand description
Recurrent reservoir layer with state feedback.
Fields§
§n_inputs: usize§n_neurons: usize§w_in: Vec<f64>Input weights, flat [n_neurons, n_inputs].
w_rec: Vec<f64>Recurrent weights, flat [n_neurons, n_neurons].
state: Vec<f64>Current state [n_neurons].
Implementations§
Trait Implementations§
Source§impl Clone for RecurrentLayer
impl Clone for RecurrentLayer
Source§fn clone(&self) -> RecurrentLayer
fn clone(&self) -> RecurrentLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecurrentLayer
impl RefUnwindSafe for RecurrentLayer
impl Send for RecurrentLayer
impl Sync for RecurrentLayer
impl Unpin for RecurrentLayer
impl UnsafeUnpin for RecurrentLayer
impl UnwindSafe for RecurrentLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more