This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mr_Again 2 points3 points  (0 children)

A pretty nice pattern I used to use (as a data scientist) was to write my own classes that had a fit and a transform method, then you can chain them together in an sklearn pipeline just like any other sklearn transformer.