Skip to content

Commit

Permalink
Update ode.py
Browse files Browse the repository at this point in the history
adding trainable parameter alpha to LV system
  • Loading branch information
drgona authored May 30, 2024
1 parent 92619b1 commit 8b172c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neuromancer/dynamics/ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def __init__(self, insize=2, outsize=2):
def ode_equations(self, x):
x1 = x[:, [0]]
x2 = x[:, [-1]]
dx1 = 1.1 * x1 - 0.4*x1*x2
dx1 = self.alpha*x1 - 0.4*x1*x2
dx2 = 0.1*x1*x2 - 0.4*x2
return torch.cat([dx1, dx2], dim=-1)

Expand Down Expand Up @@ -423,4 +423,4 @@ def ode_equations(self, x, u):
odes = {**ode_param_systems_auto,
**ode_param_systems_nonauto,
**ode_hybrid_systems_auto,
**ode_networked_systems}
**ode_networked_systems}

0 comments on commit 8b172c3

Please sign in to comment.