Skip to content

Commit

Permalink
[DOC] Add example notebook for the graphical pipeline (#5175)
Browse files Browse the repository at this point in the history
#### Reference Issues/PRs

See #4652 and #4281

#### What does this implement/fix? Explain your changes.

This PR adds the graphical pipeline jupyter notebook. Furthermore, it
ensures that the ForecastingGridSearchCV call fit,predict etc. using
keywords instead of positional arguments to enable that the gridsearch
works with the graphical pipeline.
  • Loading branch information
benHeid authored Aug 8, 2024
1 parent 8dbcaf6 commit 0c9fde4
Show file tree
Hide file tree
Showing 9 changed files with 5,140 additions and 1 deletion.
5,139 changes: 5,139 additions & 0 deletions examples/05_graphical_pipelines.ipynb

Large diffs are not rendered by default.

Binary file added examples/img/classification_pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/forecasting_pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/graphical_pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/graphical_pipeline_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/graphical_pipeline_example_grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/graphical_pipeline_simplified.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/img/sequential_pipeline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sktime/forecasting/model_evaluation/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _evaluate_window(x, meta):
# make prediction
if y_pred_key not in y_preds_cache.keys():
start_pred = time.perf_counter()
y_pred = method(fh, X_test, **pred_args)
y_pred = method(fh=fh, X=X_test, **pred_args)
pred_time = time.perf_counter() - start_pred
temp_result[time_key] = [pred_time]
y_preds_cache[y_pred_key] = [y_pred]
Expand Down

0 comments on commit 0c9fde4

Please sign in to comment.