pub struct Neuron {
pub layer: usize,
pub position: usize,
pub activation: f32,
pub stats: NeuronStats,
pub features: Vec<String>,
}Expand description
Represents a single neuron in the model
Fields§
§layer: usizeLayer index
position: usizePosition in layer
activation: f32Current activation value
stats: NeuronStatsHistorical activation stats
features: Vec<String>Detected features this neuron responds to
Trait Implementations§
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