Dr. Dror

Foo is not just a "Bar"

Some learnings from implementing a transformer


I had to (or at least I thought I had to) implement a transformer to be used in a sklearn.pipeline.Pipeline. In a nutshell, I implemented badly the transform method. The original version can be found in this gist. In the following version I fixed it. Furthermore, I left some comments on the gist's page.