-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
506 ccp reoptimize inference #507
506 ccp reoptimize inference #507
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 449-cp-with-conditional-guarantees #507 +/- ##
======================================================================
Coverage ? 100.00%
======================================================================
Files ? 73
Lines ? 6639
Branches ? 1129
======================================================================
Hits ? 6639
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Warning: | ||
|
||
In this tutorial, we use ``unsafe_approximation=True`` to have a faster | ||
computation (because Read The Docs examples require fast computation). | ||
This mode use an approximation, which make the inference (``predict``) faster, | ||
but induce a small miscoverage. It is recommanded not to use it, or be | ||
very careful and empirically check the coverage and a test set. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to temporally use the old method (with unsafe_approximation=True
), which doesn't have the theoretical guarantees, otherwise the documentation was in timeout. I will need to change the dataset, to have faster computation, or transform this .py tuto in the doc, into a true notebook, which is not run during the documentation build.
Indeed, showing in the first tuto, the deprecated method which doesn't have guarantees is not a good idea.
a3664f5
into
449-cp-with-conditional-guarantees
Description
I added a re-optimization for each X_n+1 at inference time (in the
predict
). The oldsplit
method is still available withmapie.predict(X, unsafe_approximation=True)
.Fixes #506
Type of change
Please remove options that are irrelevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
make lint
make type-check
make tests
make coverage
make doc