Closed gaspardc-met closed 2 months ago
Hi @gaspardc-met, thanks for your message and glad to hear you've been using MAPIE for a while.
This bug is a direct consequence of the renaming of certain files (the mapie/conformity_scores/residual_conformity_scores.py
file no longer exists, but the ResidualNormalisedScore
class still exists and can be accessed from the mapie.conformity_scores
module).
At this stage, you can resolve this bug simply by updating the new path to the class, directly in the conformity_scores
module, like this:
from mapie.conformity_scores import ResidualNormalisedScore
Even with the update to MAPIE, you can still access all the existing functions and classes. Their access path has just changed (surely we should have left the previous access path still operational for the time of the update).
To fully satisfy your problem of downloading an old model that you previously saved under MAPIE < 0.9.0, we're going to have to make a patch in the next few days.
Don't hesitate to let me know if this solution solves your problem.
Thank you for the feedback @thibaultcordier
To be honest the models are in production so for now I just pinned MAPIE to <0.9.0 to avoid retraining them. I will watch out for the patch and the next releases to upgrade 👍
Hello @gaspardc-met, we have just merged the PR which fixes your issue and released a new version of mapie (0.9.1) on pypi. The conda version should be available in one our two days ! We hope that this fix will solve your problems !
Mapie version 0.9.1 is now also available on conda !
Hi @vincentblot28 ,
Thank you for the patch and the heads-up. I have upgraded MAPIE to 0.9.1, and it works without updating the models.
Best regards
Hello MAPIE team Been happily using MAPIE for a while now. Filling this because I'm not sure if the regression is intended from the
0.9.0
release or not.Describe the bug Failing to load previously trained MAPIE models
To Reproduce
MAPIE==0.8.4
MAPIE < 0.9.0
(up to 0.8.6) works fineExpected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.