[−][src]Struct radiate::models::neat::tracer::Tracer
Tracer keeps track of historical metadata for neurons to keep track of their activated values and derivatives so backpropagation (through time) is available for batch processing and weight updates
Fields
neuron_activation: HashMap<NeuronId, Vec<f32>>
neuron_derivative: HashMap<NeuronId, Vec<f32>>
max_neuron_index: usize
index: usize
Implementations
impl Tracer
[src]
pub fn new() -> Self
[src]
pub fn reset(&mut self)
[src]
reset the tracer. The backprop works off of indexed values so when the layer is reset, the tracer must be reset as well
pub fn update_neuron_activation(
&mut self,
neuron_id: &NeuronId,
neuron_value: f32
)
[src]
&mut self,
neuron_id: &NeuronId,
neuron_value: f32
)
update a neuron and add it's activated value 𝜎(Σ(w * i) + b)
pub fn update_neuron_derivative(&mut self, neuron_id: &NeuronId, neuron_d: f32)
[src]
update a neuron and add it's derivative of it's activated value to the tracer
pub fn neuron_activation(&self, neuron_id: NeuronId) -> f32
[src]
return the activated value of a neuron at the current index
pub fn neuron_derivative(&self, neuron_id: NeuronId) -> f32
[src]
return the derivative of a neuron at the current index
Trait Implementations
impl Clone for Tracer
[src]
impl Debug for Tracer
[src]
impl<'de> Deserialize<'de> for Tracer
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Tracer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tracer
impl Send for Tracer
impl Sync for Tracer
impl Unpin for Tracer
impl UnwindSafe for Tracer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,