Skip to content

Commit

Permalink
update top banner in docs (#343)
Browse files Browse the repository at this point in the history
cooks distance error fix

banner

banner
  • Loading branch information
neelasha23 authored Feb 9, 2024
1 parent da5cfcc commit bfa2b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
html_theme_options = {
"analytics": {"google_analytics_id": "G-3KL9PSJBZZ"},
"announcement": (
"Host Voilà and Streamlit apps for free with "
"<a href='https://www.platform.ploomber.io/register/'>Ploomber Cloud!</a>"
"Deploy AI apps for free on "
"<a href='https://ploomber.io/?utm_medium=readthedocs&utm_source=sklearn-evaluation' " # noqa
"style='color:#7CB9E8;' >"
"Ploomber Cloud!</a>"
),
"search_bar_text": "Search this book...",
"launch_buttons": {
Expand Down
4 changes: 1 addition & 3 deletions src/sklearn_evaluation/plot/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ def cooks_distance(X, y, ax=None):

if ax is None:
_, ax = plt.subplots()
_, _, baseline = ax.stem(
distance_, linefmt="C0-", markerfmt=",", use_line_collection=True
)
_, _, baseline = ax.stem(distance_, linefmt="C0-", markerfmt=",")

ax.set_xlim(0, len(distance_))

Expand Down

0 comments on commit bfa2b5e

Please sign in to comment.