Skip to content

Improve test coverage#27

Merged
sebapersson merged 10 commits into
mainfrom
test_coverage
Feb 12, 2026
Merged

Improve test coverage#27
sebapersson merged 10 commits into
mainfrom
test_coverage

Conversation

@sebapersson
Copy link
Copy Markdown
Collaborator

Adding 5 new test-cases. 1 is having a math expression in the hybridization table. The other 4 have array input for simulation-based hybridization.

@sebapersson sebapersson requested a review from BSnelling February 7, 2026 05:58
Comment thread test_cases/sciml_problem_import/036/README.md Outdated
| layer2 | Linear(in_features = 5, out_features = 10, bias = true) | relu |
| layer3 | Linear(in_features = 10, out_features = 1, bias = true) | identity |

The inputs to the network are given by `prey` (argument 0) and an array file (argument 1).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is the core feature of this test case the mixture of a species and an array input to the NN? If so, it would be good to highlight that at the top of this README.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The core feature is rather that we have array input, I will highlight better in the README

Comment thread test_cases/sciml_problem_import/037/README.md Outdated
Comment thread test_cases/sciml_problem_import/038/README.md Outdated

Test case for when a feed-forward neural network appears in one of the observable formulas,
and one of the ML model input arguments is given via an array file that takes condition
specific vales.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
specific vales.
specific values.

@@ -0,0 +1,29 @@
# Test Case 039

Test case for when a feed-forward neural network appears in one of the observable formulas,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

How does this test case differ from 038? They both seem to be about condition specific array inputs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

38 is with array input inside the ODE model, while the other is condition specific array input in the observable formula. I will clarify

sebapersson and others added 4 commits February 10, 2026 17:20
Co-authored-by: BSnelling <branwen.snelling@crick.ac.uk>
Co-authored-by: BSnelling <branwen.snelling@crick.ac.uk>
Co-authored-by: BSnelling <branwen.snelling@crick.ac.uk>
@sebapersson sebapersson merged commit 821cd5f into main Feb 12, 2026
1 check passed
@sebapersson sebapersson deleted the test_coverage branch February 12, 2026 13:58
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.

2 participants