in src/smote_variants.py [0:0]
def check_equal_par(self, x, name_x, y, name_y):
"""
Check if parameter is equal to another parameter
Args:
x (numeric): the parameter value
name_x (str): the parameter name
y (numeric): the other parameter value
name_y (str): the other parameter name
Throws:
ValueError
"""
if x == y:
m = (
"Value for parameter %s equal to parameter %s is not "
"allowed: %f == %f"
)
m = m % (name_x, name_y, x, y)
raise ValueError(self.__class__.__name__ + ": " + m)