Skip to main content

update_prediction_weights

Function update_prediction_weights 

Source
pub fn update_prediction_weights(
    weights: &mut [f64],
    actual_probs: &[f64],
    n_neurons: usize,
    n_inputs: usize,
    lr: f64,
)
Expand description

STDP-like weight update: push prediction weight toward actual probability.