Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent 72883c9 commit e9979d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/ml_tooling/plots/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ def _plot_barh(
if add_label:
for i, (x, y) in enumerate(_generate_text_labels(ax, horizontal=True)):
ax.annotate(
f"{values.ravel()[i]:.1%}"
if is_percent
else f"{values.ravel()[i]:.2f}",
(
f"{values.ravel()[i]:.1%}"
if is_percent
else f"{values.ravel()[i]:.2f}"
),
(x, y),
xytext=(5, 0),
textcoords="offset points",
Expand Down
1 change: 1 addition & 0 deletions src/ml_tooling/search/gridsearch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implement Gridsearch hyperparameter optimization
"""

from typing import Iterator, List, Any

from sklearn import clone
Expand Down
1 change: 0 additions & 1 deletion src/ml_tooling/transformers/binarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
values to 0
"""


from typing import Any

import numpy as np
Expand Down

0 comments on commit e9979d4

Please sign in to comment.