-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix bug with bound_method + ✨ new integrations #62
Conversation
@@ -367,7 +367,7 @@ def calculate( | |||
# determing the bounds of the series dict items and slice on them | |||
start, end = _determine_bounds(bound_method, list(series_dict.values())) | |||
series_dict = { | |||
n: s[s.index.dtype.type(start) : s.index.dtype.type(end)] | |||
n: s.loc[s.index.dtype.type(start) : s.index.dtype.type(end)] # TODO: check memory efficiency of ths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check memory efficiency of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 tests will fail (as we need to agree what indexing is preferred). |
Codecov Report
@@ Coverage Diff @@
## main #62 +/- ##
=======================================
Coverage 97.73% 97.73%
=======================================
Files 23 23
Lines 1103 1106 +3
=======================================
+ Hits 1078 1081 +3
Misses 25 25
Continue to review full report at Codecov.
|
@jvdd, might also be interesting too look into:
Thanks to @jellevhb |
@@ -21,6 +21,7 @@ tsflex is a domain independent package for time series processing & feature extr | |||
| Climate modelling | [Ozone level detection](https://archive.ics.uci.edu/ml/datasets/Ozone%20Level%20Detection) | [example_ozone_level_detection.ipynb](https://github.com/predict-idlab/tsflex/blob/main/examples/example_ozone_level_detection.ipynb) | | |||
| Household data | [Electric power consumption](https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption) | [example_power_consumption_estimation.ipynb](example_power_consumption_estimation.ipynb) | | |||
| Clinical data | [Sleep-EDF Database Expanded](https://physionet.org/content/sleep-edfx/1.0.0/) | [example_sleep_staging.ipynb](example_sleep_staging.ipynb) | | |||
| kaggle competition | [Tabular Playground Series - Apr 2022](https://www.kaggle.com/competitions/tabular-playground-series-apr-2022)| https://www.kaggle.com/code/jeroenvdd/tpsapr22-best-non-dl-model-tsflex-powershap | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: maybe state here that the data was already segmented -> so here you can find an example on how to use tsflex
on already segmented data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm not very proud about how we did it (considering the long table as one large series and having a stride that is equal to your sample size)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, will create an issue or extend an existing one with this topic
This PR handles
(1) 🐛 a bug in the
bound_method
+ sequence based strided rolling.loc
induces memory peakwindow_idx="begin"
default instead of"end"
end
-index of the segments.(2) ✨ extends integration with other feature extraction packages
catch22
integration wrapperscikit-learn transformer
wrapper(3): ⚡ faster irregular data check
(4): 🔥 add kaggle TPSAPR2022 notebook to ML examples