-
Notifications
You must be signed in to change notification settings - Fork 3
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
ENH: Refactor filters into filtering
#71
base: main
Are you sure you want to change the base?
Conversation
A few comments:
|
5cec644
to
7e67f76
Compare
reference = np.percentile(centers[centers >= 1.0], DEFAULT_CLIP_PERCENTILE) | ||
centers[centers < 1.0] = reference | ||
drift = reference / centers | ||
return shelldata * drift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming for above two functions/filters should be improved.
7e67f76
to
1170199
Compare
Refactor code blocks that perform filtering operations within models into the `filtering` module so that the model and filter concepts are separated, supporting more cleanly pipelining models with filters within the new `Estimator` philosophy. Add the percentile-based detrending feature that was temporarily removed in commit 7322e93.
1170199
to
504ea30
Compare
|
||
clipped_dataset._dataset = clipped_dataset._dataset.dataobj[..., shellmask] | ||
|
||
return clipped_dataset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we clip the data, maybe the gradients stored in the datasets should also be clipped.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
- Coverage 68.75% 67.35% -1.40%
==========================================
Files 20 20
Lines 957 965 +8
Branches 121 120 -1
==========================================
- Hits 658 650 -8
- Misses 254 271 +17
+ Partials 45 44 -1 ☔ View full report in Codecov by Sentry. |
Refactor code blocks that perform filtering operations within models into the
filtering
module so that the model and filter concepts are separated, supporting more cleanly pipelining models with filters within the newEstimator
philosophyAdd the percentile-based detrending feature that was temporarily removed in commit 7322e93.
Closes #63.