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

Notebook TS-Changepoint : Handling infinite arrays when alpha is too small #488

Closed
BaptisteCalot opened this issue Jul 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@BaptisteCalot
Copy link
Collaborator

BaptisteCalot commented Jul 23, 2024

Describe the bug

Handling of infinite arrays when alpha is too small in the coverage calculation with the function regression_coverage_score().

To Reproduce
Steps to reproduce the behavior:

  1. Go to notebook "ts-changepoint.ipynb"
  2. Uncomment the following : "coverage_aci_pfit = regression_coverage_score(y_test, y_pis_aci_pfit[:, 0, 0], y_pis_aci_pfit[:, 1, 0])"
  3. Launch all the notebook
  4. See error

Expected behavior
How to handle alpha values in this case to calculate a regression coverage score without raising an error?

Screenshots
Capture d’écran 2024-07-23 à 11 47 42
Capture d’écran 2024-07-23 à 11 47 52

Desktop (please complete the following information):

  • OS: IOS
  • Browser : chrome
  • MAPIE Version 0.8.6

Additional context
We get another type of error when allow_infinite_bounds = False in the .predict() method. It tells us that the number of samples must be greater than max(alpha, 1/alpha)

@BaptisteCalot BaptisteCalot added the bug Something isn't working label Jul 23, 2024
@BaptisteCalot BaptisteCalot self-assigned this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants