Skip to content

Commit edd6f68

Browse files
Replace np.math with math
1 parent 1e85cba commit edd6f68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frouros/utils/stats.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import abc
44
import itertools
5+
import math
56
from functools import partial
67
from multiprocessing import Pool
78
from typing import Any, Callable, Optional, Tuple, Union
@@ -248,7 +249,7 @@ def permutation( # pylint: disable=too-many-arguments,too-many-locals
248249
X_num_samples, Y_num_samples = X.shape[0], Y.shape[0] # noqa: N806
249250
data = np.concatenate([X, Y])
250251

251-
max_num_permutations = np.math.factorial(data.shape[0])
252+
max_num_permutations = math.factorial(data.shape[0])
252253
if num_permutations >= max_num_permutations:
253254
logger.warning(
254255
"Number of permutations (%s) is greater or equal "

0 commit comments

Comments
 (0)