MAPIE
MAPIE copied to clipboard
Issue in flow of ts-changepoint notebook
Describe the bug I get an error when running the ts-changepoint notebook. It looks like an issue with the flow of the notebook and not an issue with the conformal predictor itself.
To Reproduce
- Run the notebook
- Issue in the "Prediction interval with partial fit" section, when running "EnbPI with partial_fit, width optimization".
Expected behavior
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[23], [line 25](vscode-notebook-cell:?execution_count=23&line=25)
[15](vscode-notebook-cell:?execution_count=23&line=15) (
[16](vscode-notebook-cell:?execution_count=23&line=16) y_pred_pfit[step:step + gap],
[17](vscode-notebook-cell:?execution_count=23&line=17) y_pis_pfit[step:step + gap, :, :],
(...)
[22](vscode-notebook-cell:?execution_count=23&line=22) optimize_beta=True
[23](vscode-notebook-cell:?execution_count=23&line=23) )
[24](vscode-notebook-cell:?execution_count=23&line=24) conformity_scores_pfit.append(mapie_enbpi.conformity_scores_)
---> [25](vscode-notebook-cell:?execution_count=23&line=25) lower_quantiles_pfit.append(mapie_enbpi.lower_quantiles_)
[26](vscode-notebook-cell:?execution_count=23&line=26) higher_quantiles_pfit.append(mapie_enbpi.higher_quantiles_)
[27](vscode-notebook-cell:?execution_count=23&line=27) coverage_pfit = regression_coverage_score(
[28](vscode-notebook-cell:?execution_count=23&line=28) y_test, y_pis_pfit[:, 0, 0], y_pis_pfit[:, 1, 0]
[29](vscode-notebook-cell:?execution_count=23&line=29) )
AttributeError: 'MapieTimeSeriesRegressor' object has no attribute 'lower_quantiles_'
Screenshots