diff --git a/demos/python/SpikingTE/SpikeTrainTETesting.py b/demos/python/SpikingTE/SpikeTrainTETesting.py index 10178a0..86a4959 100755 --- a/demos/python/SpikingTE/SpikeTrainTETesting.py +++ b/demos/python/SpikingTE/SpikeTrainTETesting.py @@ -81,8 +81,10 @@ teCalc.setProperty("knns", "4") print("Independent Poisson Processes") teCalc.setProperty("DEST_PAST_INTERVALS", "1,2") teCalc.setProperty("SOURCE_PAST_INTERVALS", "1,2") -teCalc.setProperty("DO_JITTERED_SAMPLING", "true") -teCalc.setProperty("JITTERED_SAMPLING_NOISE_LEVEL", "0") +# It is recommended that this is never set to 'true', apart from cases of extremely bursty spiking (that is, long periods +# of no activity and short periods of intense spiking). In such cases, care must also be taken in the setting of the +# parameter JITTERED_SAMPLING_NOISE_LEVEL. +teCalc.setProperty("DO_JITTERED_SAMPLING", "false") teCalc.appendConditionalIntervals(JArray(JInt, 1)([1, 2])) teCalc.appendConditionalIntervals(JArray(JInt, 1)([1, 2])) teCalc.setProperty("NORM_TYPE", "MAX_NORM") @@ -112,8 +114,7 @@ print("Noisy copy zero TE") #teCalc.appendConditionalIntervals(JArray(JInt, 1)([1])) teCalc.setProperty("DEST_PAST_INTERVALS", "1") teCalc.setProperty("SOURCE_PAST_INTERVALS", "1") -teCalc.setProperty("DO_JITTERED_SAMPLING", "true") -teCalc.setProperty("JITTERED_SAMPLING_NOISE_LEVEL", "0") +teCalc.setProperty("DO_JITTERED_SAMPLING", "false") #teCalc.setProperty("NORM_TYPE", "MAX_NORM") results_noisy_zero = np.zeros(NUM_REPS) @@ -145,8 +146,7 @@ print("Noisy copy non-zero TE") teCalc.appendConditionalIntervals(JArray(JInt, 1)([1])) teCalc.setProperty("DEST_PAST_INTERVALS", "1,2") teCalc.setProperty("SOURCE_PAST_INTERVALS", "1") -teCalc.setProperty("DO_JITTERED_SAMPLING", "true") -teCalc.setProperty("JITTERED_SAMPLING_NOISE_LEVEL", "0") +teCalc.setProperty("DO_JITTERED_SAMPLING", "false") #teCalc.setProperty("NORM_TYPE", "MAX_NORM") results_noisy_non_zero = np.zeros(NUM_REPS) @@ -175,8 +175,7 @@ teCalc = teCalcClass() teCalc.setProperty("knns", "4") teCalc.setProperty("DEST_PAST_INTERVALS", "1,2") teCalc.setProperty("SOURCE_PAST_INTERVALS", "1") -teCalc.setProperty("DO_JITTERED_SAMPLING", "true") -teCalc.setProperty("JITTERED_SAMPLING_NOISE_LEVEL", "0") +teCalc.setProperty("DO_JITTERED_SAMPLING", "false") #teCalc.setProperty("NUM_SAMPLES_MULTIPLIER", "1") #teCalc.setProperty("NORM_TYPE", "MAX_NORM")