Deriving spiking voltage and spiking frequency of a neuron from a train nengo_dl model

@xchoo thank you for your detailed answers.

But what I wanted for the spiking threshold question was to have a more illustrated way as explained in this thread “Spiking threshold as a parameter”. Where you can see the spiking threshold on the y-axis. Where in the thread and you also explained in the current thread that the spiking threshold is dependent on the gain and bias. However, in nengo_dl these gains and biases get updated during the training and I wanted to keep them in desired range let say… from 0 volts to 0.5 volts. One possible way I see is the regularization method percentile_l2_loss_range in this example . But is there any other way to do so?