Assert two sklearn object are equal
If you compare two objects with ==, it will return False because they have different id.
You'd better override __eq__ function of class.
My question is simple and divided in two sub-questions :

I have two LabelEncoders with the exact same parameter .classes_ . But when I compare then with ==, they seems different. How can I check they are equal ?

I also want to check two sklearn model (RandomForest already fitted) are equals ? The == check does not seems to work.