Ok so let’s see if I’m doing anything wrong either in the OPF model parameters or in the file format that could cause the reset not to happen:
Here is an extract of the OPF params : neuron_id is the first colum of the CSV file and is not encoded. It’s just here for sequence numbering. And then right below an extract of the sample file:
'modelParams': {
# The type of inference that this model will perform
'inferenceType': 'TemporalAnomaly',
'sensorParams': {
# Sensor diagnostic output verbosity control;
# if > 0: sensor region will print out on screen what it's sensing
# at each step 0: silent; >=1: some info; >=2: more info;
# >=3: even more info (see compute() in py/regions/RecordSensor.py)
'verbosity' : 0,
# Include the encoders we use
'encoders': {
u'neuron_id': None,
u'value': {
'clipInput': True,
'fieldname': u'value',
'maxval': 25.0,
'minval': 0.0,
'resolution': 0.01,
#'n': 50,
'name': u'value',
'type': 'ScalarEncoder',
'w': 21},},
# A dictionary specifying the period for automatically-generated
# resets from a RecordSensor;
#
# None = disable automatically-generated resets (also disabled if
# all of the specified values evaluate to 0).
# Valid keys is the desired combination of the following:
# days, hours, minutes, seconds, milliseconds, microseconds, weeks
#
# Example for 1.5 days: sensorAutoReset = dict(days=1,hours=12),
#
# (value generated from SENSOR_AUTO_RESET)
'sensorAutoReset' : None,
},
'spEnable': True,
Sample CSV file:
neuron_id,value
int,float
S,
53,0.004258
53,0.005851
.... other lines with 53 as neuron_id.....
53,0.021194
53,0.015249
7229,0.080382
7229,0.027950
.... other lines with 7229 as neuron_id.....
7229,0.368929
7229,0.162005
etc....
Do you anything wrong in this ?
Thanks!