Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter authored Jun 8, 2023
1 parent 4437950 commit cedc58c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/autora/experimentalist/sampler/inequality/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import numpy as np
from sklearn.metrics import DistanceMetric

from autora.utils.deprecation import deprecated_alias

AllowedMetrics = Literal[
"euclidean",
"manhattan",
Expand All @@ -27,7 +29,7 @@
]


def summed_inequality_sampler(
def summed_inequality_sample(
condition_pool: np.ndarray,
reference_conditions: np.ndarray,
n: int = 1,
Expand Down Expand Up @@ -135,3 +137,5 @@ def summed_inequality_sampler(
condition_pool = condition_pool[1:]

return np.array(condition_pool_res[:n])

summed_inequality_sampler = deprecated_alias(summed_inequality_sample, "summed_inequality_sampler")

0 comments on commit cedc58c

Please sign in to comment.