Skip to content

Commit

Permalink
REF rename function to scores_to_ordering (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopfonseca committed Feb 27, 2024
1 parent 086256d commit 3a7f393
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ This is the full API documentation of the `sharp` package.
utils.check_inputs
utils.check_measure
utils.check_qoi
utils.scores_to_rank
utils.scores_to_ordering
4 changes: 2 additions & 2 deletions sharp/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"""

from ._checks import check_feature_names, check_inputs, check_measure, check_qoi
from ._rank_utils import scores_to_rank
from ._rank_utils import scores_to_ordering

__all__ = [
"check_feature_names",
"check_inputs",
"check_measure",
"check_qoi",
"scores_to_rank",
"scores_to_ordering",
]
2 changes: 1 addition & 1 deletion sharp/utils/_rank_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np


def scores_to_rank(y, direction=-1):
def scores_to_ordering(y, direction=-1):
"""
Converts an array with scores to a ranking.
Expand Down
2 changes: 0 additions & 2 deletions sharp/visualization/_waterfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import numpy as np
from sharp.utils._utils import _optional_import

# from sharp.utils import scores_to_rank


blue_rgb = np.array([0, 0.54337757, 0.98337906])
light_blue_rgb = np.array([127.0, 196, 252]) / 255
Expand Down

0 comments on commit 3a7f393

Please sign in to comment.