E0005: invalid LIF parameter
What happened
A LIF layer in the artifact has a parameter (alpha, threshold, or beta) with a value that the simulator cannot use.
Why
Common causes:
alpha is not in (0, 1) — this means the leak factor is non-physical (exponential amplification or no decay)
threshold is ≤ 0 — a non-positive threshold fires immediately or never
beta is not in (0, 1) — same issue as alpha for the synaptic filter
How to fix
- Check the model’s
tau_mem and dt values. If tau_mem is very small relative to dt, alpha = exp(-dt/tau_mem) approaches 0 and the compiler should have raised E0101. If you see E0005 at runtime, the artifact may be from an older compiler build that did not validate this.
- Recompile with the current thrindex version:
thx.compile(model, "model.thx").
Example
- E0101 — the compiler-time check for
tau_mem ≤ dt