def sign_error(prediction, y, norm=None, beta=None):
	norm = np.array([1] * prediction.shape[0]) if norm is None else norm
	beta = 0 if beta is None else beta

	return (prediction - y) / (norm + beta)
Calculates signed error nonconformity for regression problems.
dataset/ETHPy150Open donlnz/nonconformist/nonconformist/nc.py/sign_error