* db connector
* fix imports
* minor fixes
* todos
* minor codestyle fix
* todo
* rm extra logs
* abstract class -> interface
* singletons
Co-authored-by: corpglory-dev <dev@corpglory.com>
- Subtract min value from dataset before passing to model
- Rename StepModel -> DropModel
- Use cache to save state in all models
- Return `Segment { 'from': <timestamp>, 'to': <timestamp>}` instead of `Segment { 'from': <index>, 'to': <index>}` in all models
- Integrate new peaks model (from https://github.com/hastic/hastic-server/pull/123)
- Integrate new reverse-peaks model (from https://github.com/hastic/hastic-server/pull/123)
- Refactor: make `predict` method in `Model` not abstract and remove it from all children
- Refactor: add abstract `do_predict` method to models