Skip to content

Add ODE solver and examples #134

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

Merged
merged 134 commits into from
Mar 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
2bda02c
Add ODE solver
klane Jun 30, 2021
945321a
Added Lorenz63 data
amartyamukherjee Aug 18, 2021
b3cc643
Started working on Lorenz63 test
amartyamukherjee Aug 18, 2021
b7c8a6d
Set conda environment
amartyamukherjee Aug 18, 2021
b3a633c
Predicted Lorenz 63 data + Added Runge-Kutta 4
amartyamukherjee Aug 19, 2021
8ec55d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 19, 2021
0fcf33e
Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks"
amartyamukherjee Aug 19, 2021
9580a7c
Cleaned up code
amartyamukherjee Aug 19, 2021
e48d98e
Added Rossler Attractor
amartyamukherjee Aug 20, 2021
3bdbd48
Added second order example
amartyamukherjee Aug 20, 2021
8ba7cba
Trained with Lorenz 63 data
amartyamukherjee Aug 20, 2021
8031085
Fixed bugs in Lorenz 63
amartyamukherjee Aug 20, 2021
0bbd5d0
Modified TensorDataset
amartyamukherjee Aug 20, 2021
934bdcc
Update Lorenz63Train.ipynb
amartyamukherjee Aug 20, 2021
3bbfc6b
Added a test for the Duffing Equation
amartyamukherjee Aug 20, 2021
d8e2e04
Improved the prediction of Lorenz63: random sample
amartyamukherjee Aug 20, 2021
3993762
Tested SEIR and Duffing with random samlpe
amartyamukherjee Aug 20, 2021
ab7c82f
Update SEIRTest_fitRandomSample.ipynb
amartyamukherjee Aug 20, 2021
ead6c7a
Added comments to ode.py
amartyamukherjee Aug 20, 2021
5e21e39
Update Lorenz63Train_fit.ipynb
amartyamukherjee Aug 20, 2021
adb65b3
Added README.md to examples/ode
amartyamukherjee Aug 20, 2021
b53ca5a
Increased prediction range to 10000
amartyamukherjee Aug 20, 2021
f428a79
Update README.md
amartyamukherjee Aug 20, 2021
3d89a9f
Update README.md
amartyamukherjee Aug 20, 2021
dd07a7f
Update README.md
amartyamukherjee Aug 20, 2021
b2a836a
Update README.md
amartyamukherjee Aug 20, 2021
dff1fd9
Added savemat
amartyamukherjee Aug 21, 2021
2343e46
Added .mat results
amartyamukherjee Aug 21, 2021
465349b
Added results and predictions as .mat files
amartyamukherjee Aug 21, 2021
388013e
Used RK4 to train the Lorenz63 model
amartyamukherjee Aug 23, 2021
69127b0
Used RK4 to train the SEIR model
amartyamukherjee Aug 23, 2021
4df4fbf
Duffing equation - Attempt to fix "w"
amartyamukherjee Aug 23, 2021
28105a8
Fixed error with "w" in Duffing Equation
amartyamukherjee Aug 23, 2021
a5757c4
Added tests for cosine
amartyamukherjee Aug 24, 2021
d4a88c4
FIxed comment
amartyamukherjee Aug 24, 2021
2c07f70
Trying more predictions for cos(wt)
amartyamukherjee Aug 24, 2021
1661cc4
Trained with Euler's method data
amartyamukherjee Aug 24, 2021
0108d71
Update Lorenz63_Euler_Train_fitRandomSample_RK4.ipynb
amartyamukherjee Aug 24, 2021
db86c56
Created datasets using sin
amartyamukherjee Aug 24, 2021
3b4b84a
Update a_Cos_wt_sin_dataset_fitRandomSample.ipynb
amartyamukherjee Aug 24, 2021
c42b1c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2021
7453737
Fixed linting issues
amartyamukherjee Aug 28, 2021
6be5f79
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2021
6407f54
Merge branch 'main' into ode-example
amartyamukherjee Aug 28, 2021
114c855
Fixed linting issues
amartyamukherjee Aug 28, 2021
dc37944
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 28, 2021
739cc25
Update ode.py
amartyamukherjee Aug 28, 2021
c8d82a9
Used a DNN to train the Duffing Equation
amartyamukherjee Sep 9, 2021
3035b4e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 9, 2021
057d5d8
Merge branch 'main' into ode-example
amartyamukherjee Sep 9, 2021
8f1da0f
Merge branch 'main' into ode-example
amartyamukherjee Sep 26, 2021
fb547c2
Merge branch 'main' into ode-example
amartyamukherjee Oct 15, 2021
a0f3276
Used MSELoss to compare the predictions
amartyamukherjee Oct 22, 2021
a306193
Merge branch 'main' into ode-example
amartyamukherjee Dec 17, 2021
8371a8a
Add pre-commit fixes
pre-commit-ci[bot] Dec 17, 2021
01471ce
Modified ode.py to use pytorch_lightning.Trainer
amartyamukherjee Dec 18, 2021
6ab31c0
Add pre-commit fixes
pre-commit-ci[bot] Dec 18, 2021
5a082a5
Fixed pre-commit.ci issues
amartyamukherjee Dec 18, 2021
2e747eb
Fixed size error in ODESolver
amartyamukherjee Dec 18, 2021
00f2a5d
Add pre-commit fixes
pre-commit-ci[bot] Dec 18, 2021
56a8b07
Merge branch 'main' into ode-example
amartyamukherjee Dec 19, 2021
c1482a5
New fit function
amartyamukherjee Dec 20, 2021
11b9470
Add pre-commit fixes
pre-commit-ci[bot] Dec 20, 2021
3c9cd90
Improved Lorenz63 prediction
amartyamukherjee Dec 20, 2021
5968f8f
SEIR example done
amartyamukherjee Dec 20, 2021
5611bd7
Update ode.py
amartyamukherjee Dec 20, 2021
4f9d495
Fixed linting issue
amartyamukherjee Dec 20, 2021
16b1030
Add pre-commit fixes
pre-commit-ci[bot] Dec 20, 2021
f672c8f
Added a double-time error
amartyamukherjee Dec 20, 2021
d44bdc6
Improved SEIR results
amartyamukherjee Dec 20, 2021
435aa11
Removed comment
amartyamukherjee Dec 20, 2021
32a8c1c
Delete README.md
amartyamukherjee Dec 21, 2021
a9393f2
Update .gitignore
amartyamukherjee Dec 21, 2021
354b83b
Stronger results with standardized fit() function
amartyamukherjee Dec 21, 2021
1eecaed
Add pre-commit fixes
pre-commit-ci[bot] Dec 21, 2021
15801f4
Fixed linting errors
amartyamukherjee Dec 21, 2021
4e25de7
Add pre-commit fixes
pre-commit-ci[bot] Dec 21, 2021
d578966
Removed custom fit() function and modified ODESolver to include previ…
amartyamukherjee Dec 21, 2021
e14d3d5
Add pre-commit fixes
pre-commit-ci[bot] Dec 21, 2021
b3c8e62
Fixed linting errors
amartyamukherjee Dec 21, 2021
cddf6e3
Added testing plots
amartyamukherjee Dec 21, 2021
17a2cce
Used unresolved method for SEIR
amartyamukherjee Dec 21, 2021
c931460
Added Lorenz63Test_UnobservedMethod.ipynb
amartyamukherjee Dec 21, 2021
4c5e52e
Add pre-commit fixes
pre-commit-ci[bot] Dec 21, 2021
8ab449a
Added docstrings
amartyamukherjee Dec 21, 2021
6e4951a
Add pre-commit fixes
pre-commit-ci[bot] Dec 21, 2021
650bd59
Reproduced the results in klane's repository
amartyamukherjee Dec 21, 2021
e26c3be
Create test_ode.py
amartyamukherjee Dec 23, 2021
54ca89e
Add pre-commit fixes
pre-commit-ci[bot] Dec 23, 2021
68464e1
Update test_ode.py
amartyamukherjee Dec 23, 2021
53068fe
Add pre-commit fixes
pre-commit-ci[bot] Dec 23, 2021
679e067
Update test_ode.py
amartyamukherjee Dec 23, 2021
c1d5de8
Update test_ode.py
amartyamukherjee Dec 23, 2021
ad235b2
Update test_ode.py
amartyamukherjee Dec 23, 2021
98dc383
Add pre-commit fixes
pre-commit-ci[bot] Dec 23, 2021
3376f48
Update test_ode.py
amartyamukherjee Dec 23, 2021
ee17c12
Merge branch 'ode-example' of https://github.com/amartyamukherjee/tor…
amartyamukherjee Dec 23, 2021
4097139
Update test_ode.py
amartyamukherjee Dec 23, 2021
421569c
Add pre-commit fixes
pre-commit-ci[bot] Dec 23, 2021
af17ace
Fixed rk4 test case
amartyamukherjee Dec 23, 2021
bd2244a
Update test_ode.py
amartyamukherjee Dec 23, 2021
e3fc1a0
Fixed floating point error
amartyamukherjee Dec 23, 2021
ee8f1ec
Update test_ode.py
amartyamukherjee Dec 23, 2021
909b634
Merge branch 'main' into ode-example
amartyamukherjee Jan 3, 2022
9dd2b26
Merge branch 'main' into ode-example
amartyamukherjee Jan 9, 2022
8d89e7c
Merge branch 'main' into ode-example
amartyamukherjee Jan 12, 2022
6b059cd
Generalized fit(). Added test cases.
amartyamukherjee Jan 18, 2022
56c7b3c
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
10f15c1
Fixed linting issues
amartyamukherjee Jan 18, 2022
b798cd7
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
fd1d74e
Update test_ode.py
amartyamukherjee Jan 18, 2022
b4637ab
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
a6c68f4
Update test_ode.py
amartyamukherjee Jan 18, 2022
67cc297
Update test_ode.py
amartyamukherjee Jan 18, 2022
ee772ad
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
add24a5
Update test_ode.py
amartyamukherjee Jan 18, 2022
8d55fac
Update test_ode.py
amartyamukherjee Jan 18, 2022
7a80f85
Update test_ode.py
amartyamukherjee Jan 18, 2022
90e27ff
Update test_ode.py
amartyamukherjee Jan 18, 2022
f071e7b
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
e881dc4
Update test_ode.py
amartyamukherjee Jan 18, 2022
522188d
Update test_ode.py
amartyamukherjee Jan 18, 2022
b531d8d
Add pre-commit fixes
pre-commit-ci[bot] Jan 18, 2022
94ecc4e
Update test_ode.py
amartyamukherjee Jan 18, 2022
3acb12a
Merge branch 'main' into ode-example
amartyamukherjee Feb 26, 2022
c3b6582
Fixed typo in markdown
amartyamukherjee Feb 27, 2022
55145a8
Merge branch 'main' into ode-example
amartyamukherjee Mar 7, 2022
e5d8324
Merge branch 'main' into ode-example
klane Mar 8, 2022
74ec960
Rename step methods
klane Mar 12, 2022
c60bede
Move ODE function and update comments
klane Mar 12, 2022
80392eb
Update comments and format
klane Mar 12, 2022
6de693e
Use pytest.approx for numeric comparisons
klane Mar 12, 2022
f145de0
Suppress unused outputs
klane Mar 12, 2022
e74693f
Add change log entry
klane Mar 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Added website descriptions for new features. ([#165](https://github.com/Rose-STL-Lab/torchTS/pull/165), [#169](https://github.com/Rose-STL-Lab/torchTS/pull/169))
- Added mean interval score loss function. ([#188](https://github.com/Rose-STL-Lab/torchTS/pull/188))
- Added API documentation to website. ([#206](https://github.com/Rose-STL-Lab/torchTS/pull/206), [#237](https://github.com/Rose-STL-Lab/torchTS/pull/237), [#238](https://github.com/Rose-STL-Lab/torchTS/pull/238))
- Added ODE solver and examples. ([#134](https://github.com/Rose-STL-Lab/torchTS/pull/134))

### Changed

Expand Down
Loading