How can I call a method with array as transform param? Like
my_array = [a, b]
pipeline.make_pipeline(my_array)
So if I write
pipeline.make_pipeline(my_array[0], my_array[1])
it works.
a and b are objects from sklearn.
I tried to convert the array to string and eval it:
pipeline_string = eval((', '.join(map(str, my_array))).replace("\n", ""))
pipeline.make_pipeline(pipeline_string)
To change or add a function in make_pipeline
is no option
Thanks