pub struct Nn {
pub id: Arc<str>,
pub synaptic_weights: DVector<f32>,
pub bias: f32,
pub inputs: Vec<String>,
pub activation_level: f32,
pub tau: f32,
pub learning_threshold: f32,
pub learning_rate: f32,
pub tanh_alpha: f32,
pub neuron_type: NeuronType,
}Expand description
§Fields
synaptic_weights- A vector of synaptic weights.bias- A synaptic bias for the neuron.inputs- A list of input neurons.activation_level- The neuron’s activation level.tau- The neuron’s time constant.learning_threshold- The neuron’s learning threshold.learning_rate- The neuron’s learning rate.tanh_alpha- The neuron’s hyperbolic tangent alpha parameter.neuron_type- The type of the neuron: Input, Output, or Hidden.
§Example
// code example hereFields§
§id: Arc<str>§synaptic_weights: DVector<f32>§bias: f32§inputs: Vec<String>§activation_level: f32§tau: f32§learning_threshold: f32§learning_rate: f32§tanh_alpha: f32§neuron_type: NeuronTypeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nn
impl RefUnwindSafe for Nn
impl Send for Nn
impl Sync for Nn
impl Unpin for Nn
impl UnwindSafe for Nn
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.