Skip to content

Commit

Permalink
fixed a bug in the optimizer. Continue to work on the notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
MPeng5 committed Mar 27, 2023
1 parent 330a28d commit d02f4c2
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 908 deletions.
1,086 changes: 180 additions & 906 deletions examples/17_trapping_inequality.ipynb

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pysindy/optimizers/trapping_sr3.py
Expand Up @@ -376,8 +376,7 @@ def _set_Ptensors(self, r):
PC_tensor = np.zeros((r, r, N))
if offset:
for i in range(r):
for j in range(r):
PC_tensor[i, j, 0] = 1
PC_tensor[i, i, 0] = 1.0

# delta_{il}delta_{jk}
PL_tensor = np.zeros((r, r, r, N))
Expand Down

0 comments on commit d02f4c2

Please sign in to comment.