phausamann / sklearn-xarray

Metadata-aware machine learning.
http://bit.do/sklearn-xarray
BSD 3-Clause "New" or "Revised" License
102 stars 12 forks source link

Support arbitrary transform functions for Targets #23

Closed phausamann closed 6 years ago

phausamann commented 6 years ago

Targets should get a transform_func parameter that lets the user specify an arbitary transform function.

The transformer parameter should be deprecated in favor of transform_func=Transformer().fit_transform.

phausamann commented 6 years ago

This would mean breaking the get_transformed_shape mechanism. But I'm not sure how useful that was anyway. Maybe adding a transformed_shape or transformed_shape_func argument could be considered.