Repository navigation
feat(core): implement nep13 and nep18 to allow sklearn integration - #415
maartenbreddels wants to merge 3 commits into
Conversation
e19e72f to
86bfcc3
Compare
e60e43c to
5f90b49
Compare
bce691c to
b159db9
Compare
f571cfd to
84f0999
Compare
408c444 to
f85c0c2
Compare
fec686e to
6fbd934
Compare
6fbd934 to
68c2142
Compare
da09f05 to
4955df2
Compare
dff413a to
4a753a7
Compare
|
Something that is probably missing is right now is how strings are handled in this scenario, especially with interaction to scikit-learn. For instance: The same happens when using LabelEncoder. Can we support this at all? I was gonna write this as a unit-test but I was not sure how to fold it in with the rest of the tests.. |
|
As this PR is heavily geared towards scikit-learn compatibility, currently the ColumnTransformer does not seem to work (but the Pipline does!). Here is a simple example: So this will not work because ColumnTransformer expects a pandas DataFrame if the columns are specified with names. Alternatively one can use column indices: And this will fail for a different reason. Or perhaps you have imagined the usage to be bit different and we should not rely on ColumnTransformer. This is absolutely fine with me! Just that the intended usage should be described in some detail somewhere. For reference, creating a pipeline like this works just fine! : |
|
But overall i really really like the direction this is going :) |
4a753a7 to
8e84ec3
Compare
8e84ec3 to
95aecc9
Compare
49aa65c to
9289005
Compare
369423b to
6927b35
Compare
c8549a7 to
f304f80
Compare
This is a WIP on having the vaex dataframe and expressions behave more like 2d and 1d numpy arrays. This allows us to feed sklearn's fit a vaex dataframe, and have transform also return a dataframe with virtual columns. This gives us
Numpy NEPs:
Example usage (5x faster):

TODO