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

remove default settings (None for calibration df and 0.1 for alpha) #1079

Merged
merged 3 commits into from
Dec 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions neuralprophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -3104,17 +3104,15 @@ def _reshape_raw_predictions_to_forecst_df(self, df, predicted, components):
df_forecast = pd.concat([df_forecast, yhat_df], axis=1, ignore_index=False)
return df_forecast

def conformal_predict(
self, df, calibration_df=None, alpha=0.1, method="naive", plotting_backend="default", **kwargs
):
def conformal_predict(self, df, calibration_df, alpha, method="naive", plotting_backend="default", **kwargs):
"""Apply a given conformal prediction technique to get the uncertainty prediction intervals (or q-hats). Then predict.

Parameters
----------
df : pd.DataFrame
test dataframe containing column ``ds``, ``y``, and optionally ``ID`` with data
calibration_df : pd.DataFrame
optional, holdout calibration dataframe for split conformal prediction
holdout calibration dataframe for split conformal prediction
alpha : float
user-specified significance level of the prediction interval
method : str
Expand Down