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

Update-examples #58

Merged
merged 22 commits into from
May 16, 2024
Merged

Update-examples #58

merged 22 commits into from
May 16, 2024

Conversation

nseyler1
Copy link
Member

@nseyler1 nseyler1 commented May 2, 2024

Closes #52, closes #54, closes #55.

We might need to revert what we did for the coverage because we get often this WARNING: a <= 0 from infer_kinetics and the result of fit in notebook 2 seems wrong

@nseyler1 nseyler1 linked an issue May 2, 2024 that may be closed by this pull request
3 tasks
Copy link

github-actions bot commented May 2, 2024

Test results (3.8)

201 tests   201 ✅  1m 3s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f56ca5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 2, 2024

Test results (3.9)

201 tests   201 ✅  1m 4s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f56ca5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 2, 2024

Test results (3.11)

201 tests   201 ✅  1m 5s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f56ca5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 2, 2024

Test results (3.10)

201 tests   201 ✅  1m 4s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f56ca5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 2, 2024

Test results (3.12)

201 tests   201 ✅  1m 33s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f56ca5c.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented May 2, 2024

Pull Request Test Coverage Report for Build 9098719025

Details

  • 122 of 129 (94.57%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.932%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/harissa/core/model.py 5 6 83.33%
src/harissa/inference/hartree/base.py 102 108 94.44%
Totals Coverage Status
Change from base Build 8802553922: -1.0%
Covered Lines: 1049
Relevant Lines: 1056

💛 - Coveralls

@nseyler1
Copy link
Member Author

nseyler1 commented May 3, 2024

@ulysseherbach Simulating from a network parameter inferred by Hartree crash.
It happens inside the file bursty/base.py at line 66 with ValueError: scale < 0 or
at line 75 with ValueError: probabilities are not non-negative.

image

It seems kon and/or kon_bound returns negative value because I think the network parameter is not set correctly in hartree/base.py.

image

Was hartree returning normalized values before for a[0], a[1] ?
Do we need to multiply or divide them per degradation_rna ?

@nseyler1 nseyler1 self-assigned this May 3, 2024
@ulysseherbach
Copy link
Member

ulysseherbach commented May 5, 2024

We might need to revert what we did for the coverage because we get often this WARNING: a <= 0 from infer_kinetics and the result of fit in notebook 2 seems wrong

@nseyler1 OK I see, this is an important problem. In fact I think there are 3 distinct problems:

  1. infer_kinetics seems broken indeed, so maybe we need to revert to previous version, at least temporarily?
  2. Hartree used to return normalized values (a[0] and a[1] by definition) which is not the case now (I've just "fixed" it)
  3. In fact there is a more important problem with Hartree (and all inference methods) : they should not define a new parameter (which will have default values and break everything...) but rather use (and modify in place) the NetworkParameter object from the related NetworkModel instance during fit call. What would be the best implementation for that? Maybe passing an existing NetworkParameter object to the Inference.runmethod?

@nseyler1 nseyler1 marked this pull request as ready for review May 16, 2024 14:06
@ulysseherbach ulysseherbach merged commit ddf40c9 into main May 16, 2024
13 checks passed
@ulysseherbach ulysseherbach deleted the update-examples branch May 16, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants