biophysics_fitting
❭ ephys
❭ trace_check_err
trace_check_err¶
-
biophysics_fitting.ephys.trace_check_err(t, v, stim_onset=
None
, stim_duration=None
, punish=250
)¶ Returns a basic trace error that penalizes traces with low variance. Useful for an evolutionary algorithm, when the voltage trace is not spiking yet, and spike-related error functions cannot be applied yet. This tells the algorithm to reward variance in a non-spiking voltage trace – at least something is happening.
- Parameters:¶
t (array) – Time array.
v (array) – Voltage array.
stim_onset (float) – Time of stimulus onset.
stim_duration (float) – Duration of stimulus.
punish (float) – Baseline penalty for low variance. Default: 250 mV^2.