pub struct Neuron {
pub state: NeuronState,
pub activation: ActivationFn,
/* private fields */
}
Expand description
A state-filled neuron.
Fields§
§state: NeuronState
The current state of the neuron.
activation: ActivationFn
The neuron’s activation function
Implementations§
source§impl Neuron
impl Neuron
sourcepub fn flush_state(&mut self)
pub fn flush_state(&mut self)
Flushes a neuron’s state. Called by NeuralNetwork::flush_state
Trait Implementations§
source§impl From<&NeuronTopology> for Neuron
impl From<&NeuronTopology> for Neuron
source§fn from(value: &NeuronTopology) -> Self
fn from(value: &NeuronTopology) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Neuron
impl !RefUnwindSafe for Neuron
impl Send for Neuron
impl Sync for Neuron
impl Unpin for Neuron
impl !UnwindSafe for Neuron
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