Hi Manuel,
thanks for your reply, before trying an alternative as PipeGraph, or
implementing the class as you propose, I would prefer to include some code
in the _fit method of BaggingClassifier, so the correct value of X can be
passed to the base_estimator (the dataframe or its array of values).
M
You can always add a first step that turns you numpy array into a DataFrame
such as the one required afterwards.
A bit of object oriented programming might be required though, for deriving
you class from BaseTransformer and writing you particular code for fit and
transform method.
Alternatively you
Hello,
I would like to use the BaggingClassifier whose base estimator is a
pipeline with multiple transformations including a DataFrameMapper from
sklearn_pandas.
I am getting an error during the fitting the DataFrameMapper as the first
step of the BaggingClassifier is to convert the DataFrame to a