Error when computing multiple prediction intervals in Time Series Tutorial #484
Labels
Bug
Type: bug
TS regression
Related to time series regression
Work in progress
The MAPIE team is working on this.
Hello MAPIE team,
Thanks for this wonderful library. I'm encountering an issue when trying to compute two intervals instead of one in the time series tutorial, but I might be wrong or missing something in my understanding.
Describe the bug
When attempting to compute two intervals instead of one by changing the
alpha
value from0.05
to[0.1, 0.05]
in the time series tutorial, aValueError
is raised. The error message indicates an issue with evaluating the truth value of an array in theconformity_scores.py
file.To Reproduce
Steps to reproduce the behavior:
alpha = 0.05
withalpha = [0.1, 0.05]
on line 193 of the tutorial script.Expected behavior
The script should compute and return two prediction intervals without raising any errors.
Screenshots
N/A (the error message is provided below).
Desktop:
Additional context
I tried to find out what is causing it and here are some of my findings:
In conformity_scores.py, the get_quantile function (line 213) receives an inconsistent formatting of alpha_np, sometimes receiving a simple NDArray and sometimes receiving an array of arrays.
Error traceback:
The text was updated successfully, but these errors were encountered: