in regression_report.py [0:0]
def isThresholdReached(threshold, baselineValue, comparedValue, lessIsbBetter):
ratio = 0
if baselineValue != 0:
ratio = comparedValue * 100 / baselineValue - 100
if lessIsbBetter:
if ratio > (-1 * threshold):
return True
elif ratio < threshold:
return True
return False