Skip to content

Commit

Permalink
Merge pull request #1 from siufai6/siufai6-fix-901
Browse files Browse the repository at this point in the history
Update lib.py to fix kernc#901
  • Loading branch information
siufai6 authored Aug 4, 2023
2 parents 0ce24d8 + 43d4b98 commit 1d733b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backtesting/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def plot_heatmaps(heatmap: pd.Series,
[plot_objective]: \
https://scikit-optimize.github.io/stable/modules/plots.html#plot-objective
"""
assert heatmap.index.nlevels >= 2, "Heatmap plots requires at least 2 optimized parameters."
return _plot_heatmaps(heatmap, agg, ncols, filename, plot_width, open_browser)


Expand Down

0 comments on commit 1d733b9

Please sign in to comment.