-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Changed FVProjection 'name_to_use' field to 'name_alias' and changed '.set_projection' in FeatureView to ".with_projection". Also adjustments for some edge cases #1929
Conversation
…ments Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Hi @mavysavydav. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## master #1929 +/- ##
===========================================
- Coverage 81.95% 59.87% -22.08%
===========================================
Files 96 96
Lines 7557 7576 +19
===========================================
- Hits 6193 4536 -1657
- Misses 1364 3040 +1676
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
od_fvs[fv_name].set_projection(projection) | ||
od_fvs_to_use.append( | ||
od_fvs[fv_name].with_projection(copy.copy(projection)) | ||
) |
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.
these changes made b/c of the possibility of having multiple same feature views with different projections
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mavysavydav, woop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Signed-off-by: David Y Liu davidyliuliu@gmail.com
What this PR does / why we need it: Better style and the change to "with_projection" makes it harder to make mistakes. Adjustments for some edge cases like the following:
won't work unless get_items() returns a copy of the FV rather than just editing the projection. In this example, when my_fv[[feature_b]] is invoked, it overrides the feature subset in the projection for my_fv[[feature_a]].