How could I make mixins work in this case?
If I define the class `FancyEstimatorMixin`, in order to get a drop-in replacement for a sklearn
object wouldn't I need to monkey-patch the scikit-learn `BaseEstimator` class to inherit from my mixin?
Or am I misunderstanding something?
(BTW monkey-patching is one of the things I am trying to avoid in a "clean" solution)
Nope! Mostly because of lack of experience with mixins.
I've done some reading and I think I can come up with a few mixins doing the trick by dynamically adding their methods to an already instantiated object. I'll play with that and I hope to show you something soon! Or at least I will have better grounds to make an educated decision.
Best
Manuel