Alexander Velikiy
b53b49dcf7
Refactoring of Jump and Drop models ( #865 )
...
* add stair model
* add stair model method
* add types
* fix
* add tests for get stair
* fix
* fix imports
* add todo
* fixes
* get stair indexes to stair model
* fixes
* remove old methods
* use enum
* fix get_model_type
* remove exception
* list(set) -> utils.remove_duplicates
* refactor get_stair
* fixes
* fixes 2
* fixes 3
* todo
4 years ago
Alexandr Velikiy
fa9673e347
"Error: Need at least 1 labeled segment" when labeling only negative segment #790 ( #791 )
5 years ago
Evgeny Smyshlyaev
c8f4340f7c
Error: skip detection: data length less than window_size ( #723 )
...
* fix
* fix
* fix
* Update server/src/controllers/analytics_controller.ts
* fix
* fix
* fix according review
* Update server/spec/analytic_controller.jest.ts
Co-Authored-By: Alexey Velikiy <av@corpglory.com>
* fix
* Update analytics/analytics/detectors/pattern_detector.py
Co-Authored-By: Alexey Velikiy <av@corpglory.com>
5 years ago
Evgeny Smyshlyaev
801f5b1c57
Change mutable default values to none #638 ( #682 )
...
* add types, remove mutables from defaults
* fix debug logging
5 years ago
Alexandr Velikiy
ae06749b8d
Refactoring of Peak and Trough models #424 ( #680 )
5 years ago
Alexandr Velikiy
6b398d6ee9
Segment class #636 ( #637 )
5 years ago
Evgeny Smyshlyaev
d1cb6f0406
Make class for detection result ( #634 )
5 years ago
Alexandr Velikiy
20d1a974bb
Use ModelState classes in models #582 ( #586 )
5 years ago
Alexey Velikiy
30108ae643
jsonclass usage in models + fixes in meta ( #583 )
...
* jsonclass usage in models + fixes in meta
* remove some empty lines
5 years ago
Alexandr Velikiy
7f15bf3996
Add ModelState children classes #576 ( #579 )
5 years ago
Alexandr Velikiy
6a690c09f0
Add base class for models state #574 ( #575 )
5 years ago
Alexey Velikiy
194a8b9de6
Analytic types ( #573 )
5 years ago
Evgeny Smyshlyaev
c5e24b5739
fix segment_map -> segment ( #556 )
5 years ago
Evgeny Smyshlyaev
14f616eb15
Error: index out of bounds ( #538 )
5 years ago
Alexandr Velikiy
a9971d64d0
ValueError attempt to get argmin of an empty sequence #518 ( #537 )
5 years ago
Alexandr Velikiy
0f1d7774fe
Find start and end of peaks and troughs #506 ( #507 )
5 years ago
Alexandr Velikiy
e0cc56d425
Not-ending learning #264 ( #484 )
...
- optimize general model
- add logs
5 years ago
Alexandr Velikiy
4c2efac97e
Keyerror pattern model #471 ( #476 )
5 years ago
Alexandr Velikiy
81c3d79238
Change the pattern filtering logic #366 ( #423 )
5 years ago
Alexandr Velikiy
22fe2cf6b7
Drops pattern ValueError: All elements of patterns_list should have same length #414 ( #418 )
5 years ago
Alexandr Velikiy
7ab0db6ba9
Update state during learning #406 ( #408 )
5 years ago
rozetko
aa943595fc
Wrong time in threshold segments #403 ( #405 )
...
* Add convert_pd_timestamp_to_ms function to utils
* Use datapoint time in segment if it is available
5 years ago
Alexandr Velikiy
963eaa6276
Remove duplicate code from models #390 ( #391 )
...
just refactoring
5 years ago
Alexandr Velikiy
6e7073b212
Increase the number of parameters obtained during learning #364 ( #383 )
...
Increase the number of parameters obtained during learning #364
5 years ago
Evgeny Smyshlyaev
d399d0b84a
Remove duplicates from models #357 ( #363 )
...
refactoring
5 years ago
Alexandr Velikiy
99c9431f5d
IndexError: list index out of range if segment has NaN #242 ( #349 )
...
add threshold in model
5 years ago
Alexandr Velikiy
acc5ea1a80
Analytics testing #210 ( #319 )
...
fixes basic python tests
6 years ago
rozetko
77fbde6fa3
Error: detect missing cache #299 ( #302 )
...
* Pass cache to detect
* rename AnalyticUnitCache to ModelCache
* Send .data from cache
* Drop nans from bucket && set window size from cache && check cache None
* Read proper payload on DETECT message
6 years ago
Evgeny Smyshlyaev
c02be4cbfc
Rename predict to detect #279 ( #284 )
...
* dummy rename
* fixes
* renaming in analytics
6 years ago
Alexey Velikiy
005097dde0
Analytics project structure improvement #215 ( #228 )
...
* bin & analytics folders
* sys path & config relocation
* fix analytics path in node
6 years ago
Alexandr Velikiy
12c52f5ce9
Consider segment width in models #136 ( #141 )
...
* fit -> do_fit in all models && add self.segment_length
* Move converting indices to timestamps to Model class
* add flexible win size to all models
6 years ago
rozetko
d1ca327b0d
Improve all models
6 years ago
rozetko
c2c3925979
Make all models work && add reverse peak model ( #124 )
...
- 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
6 years ago
Alexey Velikiy
955f2821e3
Analytic unit cache start #117 ( #120 )
6 years ago
Coin de Gamma
7e5381f464
analytics: detector class + more types + remove Model.(save/load)
6 years ago
rozetko
f79a2d9ff1
Make models sync
6 years ago
rozetko
b86da0fcae
Split out models from detectors #98 ( #101 )
...
* Create abstract model class
* Move detectors/*_detector -> models/*_model
* Update Model class
* Change detectors to models and move fields to self.state
* Use models instead of detectors in PatternDetector
* Update inits in detectors/ and models/
* Add types to resolve_model_by_pattern
* Add types to abstract Model class
6 years ago