Skip to content

Commit

Permalink
ENH: remove cad
Browse files Browse the repository at this point in the history
  • Loading branch information
himkwtn committed Aug 23, 2024
1 parent 9ff815a commit 89ead0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pysindy/optimizers/constrained_sr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class ConstrainedSR3(SR3):
thresholder : string, optional (default 'l0')
Regularization function to use. Currently implemented options
are 'l0' (l0 norm), 'l1' (l1 norm), 'l2' (l2 norm), 'cad' (clipped
absolute deviation), 'weighted_l0' (weighted l0 norm),
are 'l0' (l0 norm), 'l1' (l1 norm), 'l2' (l2 norm), 'weighted_l0' (weighted l0 norm),
'weighted_l1' (weighted l1 norm), and 'weighted_l2' (weighted l2 norm).
max_iter : int, optional (default 30)
Expand Down
3 changes: 1 addition & 2 deletions pysindy/optimizers/sr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ def __init__(
"weighted_l0",
"weighted_l1",
"weighted_l2",
"cad",
):
raise NotImplementedError(
"Please use a valid thresholder, l0, l1, l2, cad, "
"Please use a valid thresholder, l0, l1, l2, "
"weighted_l0, weighted_l1, weighted_l2."
)
if thresholder[:8].lower() == "weighted" and thresholds is None:
Expand Down

0 comments on commit 89ead0f

Please sign in to comment.