ibis-ml
ibis-ml copied to clipboard
tests: test DiscretizeKBins and CreatePolynomialFeatures on different backends
Hi,
I am not sure if this is the right way to test Step
on different backends. I just use this as the start point for collecting better solutions and feedbacks. I tried this solution on two Step: DiscretizeKBins
and CreatePolynomialFeatures
The main idea is to see if the operators used in fit_table()
and transform_table
could be compiled to sql of different backend.
- For
fit_table()
, I save the intermediate fitting expression as a instance variableself.expr
and later to check if it is could be transpiled into different dialect. - For
transform_table
, just to compile the output table.