scikit-learn-contrib / MAPIE

A scikit-learn-compatible module to estimate prediction intervals and control risks based on conformal predictions.
https://mapie.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

Unit tests for different subsamples #468

Closed BaptisteCalot closed 1 week ago

BaptisteCalot commented 2 weeks ago

Description

This PR aims to create unit tests to verify that the train and test sets of the split method from Subsample and BlockBootstrap classes are different even though the random state is the same

Fix issue #290

Type of change

How Has This Been Tested?

Checklist : OK

codecov-commenter commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (614293e) to head (d8bf01e). Report is 499 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #468 +/- ## ========================================== Coverage 100.00% 100.00% ========================================== Files 39 41 +2 Lines 4616 5106 +490 Branches 487 871 +384 ========================================== + Hits 4616 5106 +490 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.