Skip to content
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

Merged

Conversation

pjbollinger
Copy link
Contributor

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

@codecov-io
Copy link

Current coverage is 100% (diff: 100%)

Merging #35 into master will not change coverage

@@           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          

Powered by Codecov. Last update 29d1ab5...52dc7e8

@ankitaggarwal011
Copy link
Owner

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.

Copy link
Owner

@ankitaggarwal011 ankitaggarwal011 left a 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.

@pjbollinger
Copy link
Contributor Author

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.

@ankitaggarwal011
Copy link
Owner

That works @pjbollinger. Thank you for your contribution. Excellent work!

@ankitaggarwal011 ankitaggarwal011 merged commit fbe1b6f into ankitaggarwal011:master Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants