Re: [scikit-learn] function transformer

2021-06-21 Thread Manprit Singh
Dear Sir, I have made such a transformer, below given is an example that generates 3 new columns, from existing 2 columns of a numpy array , first column is for element wise addition, second is for element wise multiplication and third is for element wise division . >>> import numpy as np >>> fr

Re: [scikit-learn] function transformer

2021-06-20 Thread Sole Galli via scikit-learn
The FunctionTransformer will apply the transformation coded your function to the entire dataset passed to the transform() method. I find it hard to see how this could work to add additional columns to the dataset, but I guess it might depend on how you designed your function. Did you try passin