Skip to content

Commit

Permalink
BUG: fix l0 reg
Browse files Browse the repository at this point in the history
  • Loading branch information
himkwtn committed Aug 20, 2024
1 parent 3cad8f6 commit 4509ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysindy/utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def get_prox(


def regularization_l0(x: NDArray[np.float64], lam: NDArray[np.float64]):
return lam.item() * np.count_nonzero(x)
return lam * np.count_nonzero(x)


def regualization_weighted_l0(x: NDArray[np.float64], lam: NDArray[np.float64]):
Expand Down

0 comments on commit 4509ea2

Please sign in to comment.