Skip to content
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

Giving a fraction of samples instead of a number of samples in the Subsample class #238

Closed
gmartinonQM opened this issue Dec 20, 2022 · 1 comment · Fixed by #464
Closed
Assignees
Labels
Enhancement Type: enhancement (new feature or request) Good first issue Easy issue to start to contribute to MAPIE Source: developers Proposed by developers.

Comments

@gmartinonQM
Copy link
Collaborator

gmartinonQM commented Dec 20, 2022

Actually, the Subsample class in mapie/subsample.py is initiated with a parameter n_samples, which is necessarily an int. This implies to hard set the number of samples used.

Would it be possible to allow n_samples to be a float between 0 and 1, interpreted as a fraction of samples to take ?

@gmartinonQM gmartinonQM added the Enhancement Type: enhancement (new feature or request) label Dec 20, 2022
@LacombeLouis
Copy link
Collaborator

@gmartinonQM, thank you for the suggestion, this is something we need to look into, an issue also related to #231.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Type: enhancement (new feature or request) Good first issue Easy issue to start to contribute to MAPIE Source: developers Proposed by developers.
Projects
None yet
4 participants