You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frouros/callbacks/batch/permutation_test.py
+39-5Lines changed: 39 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,10 @@ class PermutationTestDistanceBased(BaseCallbackBatch):
16
16
:type num_permutations: int
17
17
:param num_jobs: number of jobs, defaults to -1
18
18
:type num_jobs: int
19
+
:param conservative: conservative flag, defaults to False. If False, the p-value can be zero `(#permuted_statistics >= observed_statistic) / num_permutations`. If True, uses the conservative approach to avoid zero p-value `((#permuted_statistics >= observed_statistic) + 1) / (num_permutations + 1)`.
20
+
:type conservative: bool
21
+
:param random_state: random state, defaults to None
22
+
:type random_state: Optional[int]
19
23
:param verbose: verbose flag, defaults to False
20
24
:type verbose: bool
21
25
:param name: name value, defaults to None. If None, the name will be set to `PermutationTestDistanceBased`.
0 commit comments