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

[ENH] Add calibration_plot for probabilistic forecasts #5632

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Changes from 1 commit
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
Next Next commit
Fix multiple figures created by plot_windows.
  • Loading branch information
benHeid committed Dec 18, 2023
commit 88ab4c5eb120b95d41259cafa588af3c87d39f95
4 changes: 1 addition & 3 deletions sktime/utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def plot_windows(cv, y, title="", ax=None):

# create figure if no ax provided for plotting
if _ax_kwarg_is_none:
fig, ax = plt.subplots(1, figsize=plt.figaspect(0.25))
fig, ax = plt.subplots(figsize=plt.figaspect(0.3))

train_windows, test_windows = _get_windows(cv, y)

Expand All @@ -463,8 +463,6 @@ def get_y(length, split):

train_color, test_color = sns.color_palette("colorblind")[:2]

fig, ax = plt.subplots(figsize=plt.figaspect(0.3))

for i in range(n_splits):
train = train_windows[i]
test = test_windows[i]
Expand Down
Loading