My data has the timestamp as epoch time but I can arrang it in whatever fashion works. Have tried YYYY-MM-DD HH:MM:SS and YYYY/MM/DD HH:MM:SS but neither seems to work.
The first gives this exception:
Exception in thread "Sensor Layer [r1:1] Thread" java.lang.IllegalStateException:
java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.Double
The second gives:
Caused by: java.lang.NullPointerException
at org.numenta.nupic.encoders.DateEncoder.parse(DateEncoder.java:446)
at org.numenta.nupic.FieldMetaType.decodeType(FieldMetaType.java:98)
at org.numenta.nupic.network.sensor.HTMSensor$InputMap.get(HTMSensor.java:306)
at org.numenta.nupic.encoders.Encoder.getInputValue(Encoder.java:699)
at org.numenta.nupic.encoders.MultiEncoder.encodeIntoArray(MultiEncoder.java:102)
Tried both with and w/out (appropriate form of):
fieldEncodings.get("stamp").put(Parameters.KEY.DATEFIELD_PATTERN.getFieldName(), "YYYY-MM-dd HH:mm:ss");
In both cases the encoder is setup as:
n:0, w:0, min:0, max:0, radius:0, resolution:0
periodic, clip and forced are unset
fieldName: stamp
fieldType: datetime
encoderType: DateEncoder