-
Notifications
You must be signed in to change notification settings - Fork 86
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 issue 29 oo ode #35
Fix issue 29 oo ode #35
Conversation
Added PyCharm to gitignore
Will have to test when I get home.
It appears there is an issue with re-shaping the result of the CNN. Most likely due to the ode_result but need to investigate further.
Reversed x and t to reflect scipy.integrate.ode parameter arrangement.
Current coverage is 100% (diff: 100%)@@ master #35 diff @@
===================================
Files 5 5
Lines 165 171 +6
Methods 0 0
Messages 0 0
Branches 0 0
===================================
+ Hits 165 171 +6
Misses 0 0
Partials 0 0
|
Good work @pjbollinger. I just have a doubt about why you have increased the number of time samples by 1 in each of the example. Thanks. |
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.
I have a doubt about why you have increased the number of time samples by 1 in each of the example. Thanks.
The reason for that is to create cleaner looking arrays. Below are examples. >>> np.linspace(0.0, 10.0, num=10)
[0.0, 1.11111111, 2.2222222, 3.333333, ... , 8.8888888, 10.0]
>>> np.linspace(0.0, 10.0, num=11)
[0.0, 1.0, 2.0, 3.0, ..., 8.0, 9.0, 10.0] Please verify if you would like, I don't have access to Python/NumPy at the moment so the result might not be exact. |
That works @pjbollinger. Thank you for your contribution. Excellent work! |
This is to add scipy.integrate.ode to the project and allow for the more object-oriented friendly ODE instead of the previous scipy.integrate.odeint functionality.
This should resolve Issue #29.
I made some other modifications to allow for the new ode function.
You can see that this passes all tests found here: https://codecov.io/gh/pjbollinger/PyCNN/commit/52dc7e8b60d0df1a586a674670599af08cef1bd9