AIStream-Peelout / flow-forecast

Deep learning PyTorch library for time series forecasting, classification, and anomaly detection (originally for flood forecasting).
https://flow-forecast.atlassian.net/wiki/spaces/FF/overview
GNU General Public License v3.0
2k stars 290 forks source link

Time2vec #621

Closed isaacmg closed 1 year ago

isaacmg commented 1 year ago

.This PR adds a variable length sequence data loader + time2vec basic code.

codecov[bot] commented 1 year ago

Codecov Report

Base: 76.68% // Head: 75.77% // Decreases project coverage by -0.91% :warning:

Coverage data is based on head (1a13784) compared to base (027fcfc). Patch coverage: 85.29% of modified lines in pull request are covered.

:exclamation: Current head 1a13784 differs from pull request most recent head 7d93364. Consider uploading reports for the commit 7d93364 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #621 +/- ## ========================================== - Coverage 76.68% 75.77% -0.92% ========================================== Files 67 67 Lines 4804 4809 +5 ========================================== - Hits 3684 3644 -40 - Misses 1120 1165 +45 ``` | Flag | Coverage Δ | | |---|---|---| | python | `75.77% <85.29%> (-0.92%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout) | Coverage Δ | | |---|---|---| | [flood\_forecast/basic/gru\_vanilla.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvYmFzaWMvZ3J1X3ZhbmlsbGEucHk=) | `14.81% <ø> (ø)` | | | [flood\_forecast/preprocessing/pytorch\_loaders.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvcHJlcHJvY2Vzc2luZy9weXRvcmNoX2xvYWRlcnMucHk=) | `81.40% <73.68%> (-0.56%)` | :arrow_down: | | [flood\_forecast/preprocessing/temporal\_feats.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvcHJlcHJvY2Vzc2luZy90ZW1wb3JhbF9mZWF0cy5weQ==) | `71.42% <100.00%> (-25.72%)` | :arrow_down: | | [tests/test\_variable\_length.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-dGVzdHMvdGVzdF92YXJpYWJsZV9sZW5ndGgucHk=) | `100.00% <100.00%> (ø)` | | | [...d\_forecast/preprocessing/interpolate\_preprocess.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvcHJlcHJvY2Vzc2luZy9pbnRlcnBvbGF0ZV9wcmVwcm9jZXNzLnB5) | `68.42% <0.00%> (-15.79%)` | :arrow_down: | | [flood\_forecast/transformer\_xl/multi\_head\_base.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvdHJhbnNmb3JtZXJfeGwvbXVsdGlfaGVhZF9iYXNlLnB5) | `88.57% <0.00%> (-8.58%)` | :arrow_down: | | [flood\_forecast/pytorch\_training.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvcHl0b3JjaF90cmFpbmluZy5weQ==) | `73.17% <0.00%> (-6.10%)` | :arrow_down: | | [flood\_forecast/time\_model.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-Zmxvb2RfZm9yZWNhc3QvdGltZV9tb2RlbC5weQ==) | `79.54% <0.00%> (-3.41%)` | :arrow_down: | | [tests/test\_preprocessing.py](https://codecov.io/gh/AIStream-Peelout/flow-forecast/pull/621/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout#diff-dGVzdHMvdGVzdF9wcmVwcm9jZXNzaW5nLnB5) | | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AIStream-Peelout)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.