-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor apply methods to use Traits #80
Conversation
Codecov Report
@@ Coverage Diff @@
## main #80 +/- ##
=======================================
Coverage 99.18% 99.18%
=======================================
Files 11 11
Lines 122 123 +1
=======================================
+ Hits 121 122 +1
Misses 1 1
Continue to review full report at Codecov.
|
@@ -60,7 +60,7 @@ | |||
@testset "dims = :" begin | |||
M = [1 1; 2 2; 3 5] | |||
lc = LinearCombination([1, -1, 1]) | |||
@test_throws ArgumentError FeatureTransforms.apply(M, lc; dims=:) | |||
@test_deprecated FeatureTransforms.apply(M, lc; dims=:) |
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.
We have removed the default dims=1
for LinearCombination but added a deprecation warning so it's non-breaking for now.
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.
Looks good to me, I think the Tables.matrix
solution is better than the previous one - simpler and more readable.
Second step in #75
replaces #77
Note I haven't changed the LinearCombination tests to prevent this being a breaking change. Instead I added a deprecation warning if
dims=:
is passed in.