Skip to content

Commit e549ee0

Browse files
Carole SudreCarole Sudre
authored andcommitted
Update to change factorial
1 parent 7277da0 commit e549ee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MetricsReloaded/metrics/calibration_measures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def kernel_calibration_error(self):
236236
vect_j = one_hot_ref[j,:] - self.pred[j,:]
237237
value_ij = np.matmul(vect_i, np.matmul(kernel,vect_j.T))
238238
sum_tot += value_ij
239-
multiplicative_factor = math.factorial(numb_samples)/ (2 * np.math.factorial(numb_samples-2))
239+
multiplicative_factor = math.factorial(numb_samples)/ (2 * math.factorial(numb_samples-2))
240240
kce = 1/multiplicative_factor * sum_tot
241241
return kce
242242

0 commit comments

Comments
 (0)