There is no guarantee that this sklearn model will be compatible between sklearn versions. Indeed, an implementation or internal API may vary between versions. More info here .
If you consider one version, the best way is to disassemble and not save the parameters in the yaml file. Better yet, use joblib for this. Read more about here .
source
share