Is there a way to pass the current candidate model as an input to a custom scoring function?
I am looking for something similar to thecross_val_score method, where clf is one of the inputs.
Passing the model as an extra argument does not work since the copy of the candidate is model is not carried in the scoring procedure. What I get instead is an unfitted model with the default parameters.