in src/smote_variants.py [0:0]
def check_greater_par(self, x, name_x, y, name_y):
"""
Check if parameter is greater than or 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 less than or equal to parameter %s"
" not allowed: %f <= %f"
)
m = m % (name_x, name_y, x, y)
raise ValueError(self.__class__.__name__ + ": " + m)