Open
Description
DateTime encoder in py/htm/encoders/date.py
is a composit of several sub-encoders (ie timeOfDay, dayOfWeek, weeked, ...)
- Currently, these fields obtain parameter
bits
which means how many bits would that field activate. (this equals to "improtance" of said field in comparison to others) - the total size of the encoder is "unknown" (depends on all of those settings).
For modelling purposes it would be nice to have:
- fixed size for DateTime encoder (param
size=
like in RDSE) - instead of bits, user would specify
improtance
of each field ([0.0, 1.0]).- total of all importances is normalized to sum to 1.0
- encoders take-up N bits based on their normalized importance
- example: size=100, weekend=0.1, timeOfDay=1.0, dayOfWeek=1.0
- time & day are important, and both equally important
- weekend is 10x more insignificant
-> approx: weekend: 6bits, day: 47b, time:47b
It would be much easier to work with such encoder.
- Q: make size a mandatory param in base Encoder?