Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: SINDyDerivative set_params() missed sklearn interface #207

Merged
merged 1 commit into from Jun 21, 2022

Conversation

Jacob-Stevens-Haas
Copy link
Collaborator

Discovered a bug in how SINDyDerivative made a mistake with set_params(). Previously, CV test was passing, but silently not updating parameters the way it should have. See commit msg

Was resulting in:
```
> self.kwargs
{"kind": "spline", "s": .01, "kwargs":{"kind": finitedifference, "k": 1}}
```

This is because set_params has to mimic the exact functionality of __init__.

See https://scikit-learn.org/stable/developers/develop.html#parameters-and-init
@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2022

Codecov Report

Merging #207 (7b16aec) into master (cbe47de) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #207   +/-   ##
=======================================
  Coverage   93.78%   93.78%           
=======================================
  Files          33       33           
  Lines        3297     3297           
=======================================
  Hits         3092     3092           
  Misses        205      205           
Impacted Files Coverage Δ
pysindy/differentiation/sindy_derivative.py 96.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbe47de...7b16aec. Read the comment docs.

@akaptano akaptano merged commit a7f94bf into master Jun 21, 2022
@akaptano akaptano deleted the fix-set-params branch June 21, 2022 15:34
jpcurbelo pushed a commit to jpcurbelo/pysindy_fork that referenced this pull request Apr 30, 2024
BUG: SINDyDerivative set_params() missed sklearn interface
jpcurbelo pushed a commit to jpcurbelo/pysindy_fork that referenced this pull request May 9, 2024
)

Update CI dependencies, fix FutureWarnings about datetime comparisons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants