How to configure in HTM.java to identify weekly and daily patterns

#1

Hi
Pls let me know how to configure in HTM.java to identify weekly and daily patterns .

0 Likes

#2

Moved from #htm-hackers to #htm-java.

Make sure that you are encoding date information that captures the semantics of of weeks and days, as described here.

0 Likes

#3

Thanks Matt ,
Here the settings

fieldEncodings.get("timestamp").put(KEY.DATEFIELD_DOFW.getFieldName(), new Tuple(1, 1.0)); // Day of week
fieldEncodings.get("timestamp").put(KEY.DATEFIELD_TOFD.getFieldName(), new Tuple(24, 1.0)); // Time of day
0 Likes

#4

Try these values:

fieldEncodings.get("timestamp").put(KEY.DATEFIELD_DOFW.getFieldName(), new Tuple(21, 5.01)); // Day of week
fieldEncodings.get("timestamp").put(KEY.DATEFIELD_TOFD.getFieldName(), new Tuple(21, 11.55)); // Time of day
0 Likes

#5

Thanks Matt.

0 Likes