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 parameter names to check_grad results #644

Merged
merged 10 commits into from
Apr 29, 2021
Merged

Conversation

FFroehlich
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2021

Codecov Report

Merging #644 (d508df5) into develop (160c2a8) will increase coverage by 1.63%.
The diff coverage is 87.10%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #644      +/-   ##
===========================================
+ Coverage    88.16%   89.80%   +1.63%     
===========================================
  Files           79       93      +14     
  Lines         5257     5953     +696     
===========================================
+ Hits          4635     5346     +711     
+ Misses         622      607      -15     
Impacted Files Coverage Δ
pypesto/ensemble/covariance_analysis.py 18.36% <0.00%> (-0.39%) ⬇️
pypesto/optimize/__init__.py 100.00% <ø> (ø)
pypesto/objective/amici.py 85.56% <20.00%> (-4.27%) ⬇️
pypesto/predict/task.py 43.75% <43.75%> (ø)
pypesto/petab/__init__.py 63.63% <50.00%> (ø)
pypesto/objective/amici_util.py 84.21% <66.66%> (+8.31%) ⬆️
pypesto/engine/mpi_pool.py 68.18% <68.18%> (ø)
pypesto/ensemble/constants.py 91.30% <71.42%> (-8.70%) ⬇️
pypesto/visualize/misc.py 82.41% <72.22%> (-2.52%) ⬇️
pypesto/store/read_from_hdf5.py 91.20% <76.47%> (+33.30%) ⬆️
... and 62 more

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 1b1d8b5...d508df5. Read the comment docs.

Copy link
Member

@dilpath dilpath left a comment

Choose a reason for hiding this comment

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

👍

@@ -527,7 +527,8 @@ def check_grad(
data = {**prefix_data, **data, **postfix_data}

# create dataframe
result = pd.DataFrame(data=data)
result = pd.DataFrame(data=data,
index=[self.x_names[ix] for ix in x_indices])
Copy link
Member

Choose a reason for hiding this comment

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

self.x_names defaults to None. Not sure if this will ever be the case here though.

Copy link
Member

Choose a reason for hiding this comment

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

I think whenever parameter names are used, a good default are p0, ... / p_0, ... / x0, ..., or sth like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cannot add default names to objective since dimension of x is not known at initialization

@@ -527,7 +527,8 @@ def check_grad(
data = {**prefix_data, **data, **postfix_data}

# create dataframe
result = pd.DataFrame(data=data)
result = pd.DataFrame(data=data,
index=[self.x_names[ix] for ix in x_indices])
Copy link
Member

Choose a reason for hiding this comment

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

I think whenever parameter names are used, a good default are p0, ... / p_0, ... / x0, ..., or sth like that.

pypesto/objective/base.py Outdated Show resolved Hide resolved
Fabian Fröhlich and others added 3 commits April 28, 2021 15:34
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
@FFroehlich FFroehlich merged commit f8a07e4 into develop Apr 29, 2021
@FFroehlich FFroehlich deleted the improve_check_grad branch April 29, 2021 16:01
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.

6 participants