From cedc58c3a8304604d16df5cbfe6f1f894741a8d0 Mon Sep 17 00:00:00 2001 From: Younes Strittmatter Date: Thu, 8 Jun 2023 11:16:17 -0400 Subject: [PATCH] Update __init__.py --- src/autora/experimentalist/sampler/inequality/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/autora/experimentalist/sampler/inequality/__init__.py b/src/autora/experimentalist/sampler/inequality/__init__.py index b5e8f92..bcca9be 100644 --- a/src/autora/experimentalist/sampler/inequality/__init__.py +++ b/src/autora/experimentalist/sampler/inequality/__init__.py @@ -3,6 +3,8 @@ import numpy as np from sklearn.metrics import DistanceMetric +from autora.utils.deprecation import deprecated_alias + AllowedMetrics = Literal[ "euclidean", "manhattan", @@ -27,7 +29,7 @@ ] -def summed_inequality_sampler( +def summed_inequality_sample( condition_pool: np.ndarray, reference_conditions: np.ndarray, n: int = 1, @@ -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")