-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add data_mask to InjectiveData #71
Conversation
I think adding a This is the bit of code that needs work: Maybe we need to update |
Hi Andy! This looks like a really good start!
Yes -- as you have no doubt noticed, if we mask the obective (co)domain, then there will be a discontinuity between the domain we evaluate the model on and the domain we want to calculate the fit statistic on. The role of the So in this case, for injective model and data, we can just have a transformer that applies the mask to the model as well, and our work is done. For the cases we were discussing in #70, we will need to handle the transformation somehow, but we can do that in a seperate pull request. Let's focus on getting your changes in first, and then iterate from there. |
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.
objective_transformer
needs modifying, and ideally some test cases added
Oops - thanks for adding the qualifiers. |
Co-authored-by: Fergus Baker <fergusbkr@gmail.com>
Co-authored-by: Fergus Baker <fergusbkr@gmail.com>
When making the objective variance we have:
I think this should be |
Well noticed! Thanks! |
Co-authored-by: Fergus Baker <fergusbkr@gmail.com>
with masked bins
Third time lucky with the test case? Shouldn't cut and paste into a Julia environment where all the undeclared variables are already declared! Assuming it passes this time, this PR can probably be closed. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
- Coverage 67.11% 66.90% -0.21%
==========================================
Files 40 40
Lines 1952 1988 +36
==========================================
+ Hits 1310 1330 +20
- Misses 642 658 +16 ☔ View full report in Codecov by Sentry. |
This pull request adds a new field
data_mask
to theInjectiveData
struct. Thedata_mask
is aBitVector
that allows for masking specific data points in thecodomain
array. This feature is useful for filtering out certain data points during analysis or modeling. Thedata_mask
is initialized with alltrue
values by default.