According to the paper and other implementations, sn and sp should be different, but you used y_pred for both of them, could you please explain why?
|
y_pred = (y_true * (alpha_p * (y_pred - self.Delta_p)) + |
|
(1 - y_true) * (alpha_n * (y_pred - self.Delta_n))) * self.gamma |