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

Support FeatureTransforms #50

Merged
merged 23 commits into from
Apr 22, 2021
Merged

Support FeatureTransforms #50

merged 23 commits into from
Apr 22, 2021

Conversation

glennmoy
Copy link
Member

@glennmoy glennmoy commented Apr 21, 2021

branched off https://github.com/invenia/AxisSets.jl/tree/bc/featuretransforms and partially replaces #44

  • Removed apply! and apply_append methods for now since all we need is apply for KeyedDataset to be is_transformable
  • Simplified the key argument for similar reasons - now it looks more like Impute.apply method so I also replaced the original _pattern methods.
  • Refactored the tests to use the FeatureTransforms TestFakes.

@glennmoy glennmoy changed the title Support FeatureTransforms WIP: Support FeatureTransforms Apr 21, 2021
(:predict, :price) => [0.25 1.0; 25.0 4.0; 0.0 1.0]
```
"""
function FeatureTransforms.apply(ds::KeyedDataset, t::Transform, key=Pattern((:__,)); kwargs...)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remove dims because it is already being used in the underlying FeatureTransforms methods so I don't think we should be using for special purposes here. At least not for now.

test/featuretransforms.jl Outdated Show resolved Hide resolved
@glennmoy glennmoy changed the title WIP: Support FeatureTransforms Support FeatureTransforms Apr 22, 2021
@glennmoy glennmoy requested a review from rofinn April 22, 2021 16:07
@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #50 (52c6b0c) into main (6150175) will decrease coverage by 0.33%.
The diff coverage is 85.71%.

❗ Current head 52c6b0c differs from pull request most recent head f5c643d. Consider uploading reports for the commit f5c643d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
- Coverage   98.93%   98.60%   -0.34%     
==========================================
  Files           7        9       +2     
  Lines         283      287       +4     
==========================================
+ Hits          280      283       +3     
- Misses          3        4       +1     
Impacted Files Coverage Δ
src/AxisSets.jl 75.00% <ø> (ø)
src/impute.jl 100.00% <ø> (ø)
src/utils.jl 75.00% <75.00%> (ø)
src/featuretransforms.jl 100.00% <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 6150175...f5c643d. Read the comment docs.

Project.toml Show resolved Hide resolved
Copy link
Member

@rofinn rofinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'm not sure if this'll cover all our use cases, but it seems like a reasonable first pass.

src/featuretransforms.jl Show resolved Hide resolved
src/featuretransforms.jl Show resolved Hide resolved
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.

3 participants