Beispiel #1
0
    def __init__(self, conf, data=None):
        assert conf.TIME_UNIT_BASE_SIGNALS_NUMBER <= conf.UNIT_INPUT_HEIGHT

        self.conf = conf

        if data:
            self.unit = Unit(conf, data=data['unit'])
        else:
            self.unit = Unit(conf)

        self._buffer = Buffer([], size=self.conf.UNIT_INPUT_HEIGHT)
Beispiel #2
0
 def reset(self):
     """
     Forget all last signals (but not patterns).
     While unit has not enough signals, prediction is not be possible
     """
     self._buffer = Buffer([], size=self.conf.UNIT_INPUT_HEIGHT)