Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/examples/getting_started/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extensions:
- "net1_ps.hdf5"
hybridization_files:
- "hybridization.tsv"
neural_nets:
neural_networks:
net1:
location: "net1.yaml"
static: false
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/how_to_dmms/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extensions:
- "net3_input2.hdf5"
hybridization_files:
- "hybridization.tsv"
neural_nets:
neural_networks:
net3:
location: "net3.yaml"
static: true
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/how_to_neural_ode/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extensions:
- net1_ps.hdf5
hybridization_files:
- hybridization.tsv
neural_nets:
neural_networks:
net1:
location: net1.yaml
static: false
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/how_to_observable/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extensions:
- "net1_ps.hdf5"
hybridization_files:
- "hybridization.tsv"
neural_nets:
neural_networks:
net1:
location: "net1.yaml"
static: false
Expand Down
3 changes: 3 additions & 0 deletions doc/layers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ Additionally, the table indicates which tools support each layer.
| moid <https://pytorch.org/docs/stable/generated/torch.nn.fun | | |
| ctional.hardsigmoid.html#torch.nn.functional.hardsigmoid>`__ | | |
+--------------------------------------------------------------+----+---+
| `silu <https://pytorch.org/docs/stable/generated/torch.nn | ✔️ | |

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.

Could you here highlight this activation function is also called swish, e.g., silu (swish), as it is called swish in Lux.jl?

| .functional.silu.html#torch.nn.functional.silu>`__ | | |
+--------------------------------------------------------------+----+---+
| `mish <https://pytorch.org/docs/stable/generate | ✔️ | |
| d/torch.nn.functional.mish.html#torch.nn.functional.mish>`__ | | |
+--------------------------------------------------------------+----+---+
Expand Down
2 changes: 1 addition & 1 deletion petab_sciml/problem_utils/neural_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def create_neural_ode_problem(
"sciml": {
"version": "0.1.0",
"required": True,
"neural_nets": {
"neural_networks": {
network_name: {
"location": network_filename,
"pre_initialization": False,
Expand Down
6 changes: 4 additions & 2 deletions tests/problem_utils/test_neural_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ def test_create_neural_ode_problem(dir_tmp):
assert problem["model_files"]["model"]["location"] == "model.xml"
assert problem["measurement_files"][0] == "measurements.tsv"

assert "net1" in problem["extensions"]["sciml"]["neural_nets"]
assert "net1" in problem["extensions"]["sciml"]["neural_networks"]
assert (
problem["extensions"]["sciml"]["neural_nets"]["net1"]["location"]
problem["extensions"]["sciml"]["neural_networks"]["net1"][
"location"
]
== "net1.yaml"
)
assert "array_files" in problem["extensions"]["sciml"]
Expand Down