docs: add in-depth examples of online martingale exchangeability tests#905
Open
docs: add in-depth examples of online martingale exchangeability tests#905
Conversation
* init: online martingale tests * init: raw OnlineMartingaleTest class * v0 of complete api * some improves on V0 * add references to class docstring * Improve references * not need control here * remove unnecessary control * remove kde_min_sample_size * update density estimation function * correct is_exchangeable property * update density estimation function * rename raise_warning warn * rename min_history_to_decide min_sample_size_to_decide * rename folder * init tests * fix format * update docstring * fix typing * update summary method * update docstring * fix docstring example * update is_exchangeable * jump_size should be (0,1) * update summary * update tests * fix format * fix typing * fix typing * update docstring and warning * add init * docs: quickstart online martingale exchangeability tests * fix format * improve intro * update example * update example * improve comment * update readme * rename * rename * init linear regression example * update doc * improve example * improve plot * replace "confidence_level" by "test_level" * rename "non-conformity" score to "conformity" score * rename online_martingale_tests.py online.py * rename test_online_martingale_tests.py test_online.py * rename min_sample_size_to_decide burn_in * move example to advanced analysis section * docs: improve advanced online martingale examples and warnings Agent-Logs-Url: https://github.com/scikit-learn-contrib/MAPIE/sessions/103757d3-0e48-4ac6-af2d-be1ea1f6c3ec Co-authored-by: hmaissoro <45612115+hmaissoro@users.noreply.github.com> * use MAPIE estimator * rename online.py online_tests.py * merge folders * merge folders * add tests for reach 100% coverage * _prepare_estimator is now a static method * update docstring * update example * Update regression example * update docstring's example * Fix coverage * remove docs --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Contributor
|
GBrelurut
approved these changes
Apr 20, 2026
Collaborator
GBrelurut
left a comment
There was a problem hiding this comment.
Nice work.
I have some suggestions to improve implementation.
| task : Optional[Literal["classification", "regression"]], default=None | ||
| Task type. If ``None``, the task is inferred from `y`. | ||
|
|
||
| test_method : {"jumper_martingale", "plugin_martingale"}, default="jumper_martingale" |
| estimator = self.mapie_estimator | ||
| assert estimator is not None | ||
|
|
||
| if not estimator._is_fitted: |
Collaborator
There was a problem hiding this comment.
I think it should not be done silently
| "Plug-in Martingales for Testing Exchangeability on-line". | ||
| In Proceedings of the 29th ICML. Algorithm 1, page 3. | ||
| """ | ||
| # %% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.