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

add sensitivities for fitzhugh nagumo model #301

Merged
merged 10 commits into from
Apr 4, 2018

Conversation

martinjrobins
Copy link
Member

@martinjrobins martinjrobins commented Mar 28, 2018

similar to previous logistic sensitivities, but for an ode model

@codecov
Copy link

codecov bot commented Mar 28, 2018

Codecov Report

Merging #301 into master will increase coverage by 0.52%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #301      +/-   ##
==========================================
+ Coverage   82.29%   82.82%   +0.52%     
==========================================
  Files          36       36              
  Lines        2864     2940      +76     
==========================================
+ Hits         2357     2435      +78     
+ Misses        507      505       -2
Impacted Files Coverage Δ
pints/toy/_fitzhugh_nagumo_model.py 100% <100%> (ø) ⬆️
pints/noise.py 82.75% <0%> (+49.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d7e8c4...7c93736. Read the comment docs.

I have corrected the derivative. it now passes unit test in tensorflow.
Updated FN with correct derivatives
@MichaelClerx
Copy link
Member

@sanmitraghosh your tests are failing!

Copy link
Member

@MichaelClerx MichaelClerx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single internal docstring needs fixing, otherwise happy to merge!

def simulate_with_sensitivities(self, parameters, times):
return self._simulate(parameters, times, True)

def _simulate(self, parameters, times, sensitivities):
""" See :meth:`pints.ForwardModel.simulate()`. """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring is no longer appropriate! Should have a full one here with:

Arguments:
    `parameters`
        Lalala

etc. that explains the extra sensitivities switch

@MichaelClerx MichaelClerx mentioned this pull request Apr 3, 2018
46 tasks
@martinjrobins martinjrobins merged commit 90b7c88 into master Apr 4, 2018
@MichaelClerx MichaelClerx deleted the issue-298-sensitivities branch April 6, 2018 12:40
MichaelClerx pushed a commit that referenced this pull request Feb 22, 2019
add sensitivities for fitzhugh nagumo model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants