@@ -63,8 +63,9 @@ class _HoleGenerator:
6363 Names of the columns for which holes must be created, by default None
6464 ratio_masked : Optional[float]
6565 Ratio of values to mask, by default 0.05.
66- random_state : Optional[int]
67- The seed used by the random number generator, by default 42.
66+ random_state : int, RandomState instance or None, default=None
67+ Controls the randomness.
68+ Pass an int for reproducible output across multiple function calls.
6869 groups: Tuple[str, ...]
6970 Column names used to group the data
7071 """
@@ -150,8 +151,9 @@ class UniformHoleGenerator(_HoleGenerator):
150151 Names of the columns for which holes must be created, by default None
151152 ratio_masked : Optional[float], optional
152153 Ratio of masked values to add, by default 0.05.
153- random_state : Optional[int], optional
154- The seed used by the random number generator, by default 42.
154+ random_state : int, RandomState instance or None, default=None
155+ Controls the randomness.
156+ Pass an int for reproducible output across multiple function calls.
155157 sample_proportional: bool, optional
156158 If True, generates holes in target columns with same equal frequency.
157159 If False, reproduces the empirical proportions between the variables.
@@ -215,8 +217,9 @@ class _SamplerHoleGenerator(_HoleGenerator):
215217 Names of the columns for which holes must be created, by default None
216218 ratio_masked : Optional[float], optional
217219 Ratio of masked values to add, by default 0.05.
218- random_state : Optional[int], optional
219- The seed used by the random number generator, by default 42.
220+ random_state : int, RandomState instance or None, default=None
221+ Controls the randomness.
222+ Pass an int for reproducible output across multiple function calls.
220223 groups: Tuple[str, ...]
221224 Column names used to group the data
222225 """
@@ -321,8 +324,9 @@ class GeometricHoleGenerator(_SamplerHoleGenerator):
321324 Names of the columns for which holes must be created, by default None
322325 ratio_masked : Optional[float], optional
323326 Ratio of masked values to add, by default 0.05.
324- random_state : Union[None, int, np.random.RandomState], optional
325- The seed used by the random number generator, by default 42.
327+ random_state : int, RandomState instance or None, default=None
328+ Controls the randomness.
329+ Pass an int for reproducible output across multiple function calls.
326330 groups: Tuple[str, ...]
327331 Column names used to group the data
328332 """
@@ -390,8 +394,9 @@ class EmpiricalHoleGenerator(_SamplerHoleGenerator):
390394 Names of the columns for which holes must be created, by default None
391395 ratio_masked : Optional[float], optional
392396 Ratio of masked values to add, by default 0.05.
393- random_state : Optional[int], optional
394- The seed used by the random number generator, by default 42.
397+ random_state : int, RandomState instance or None, default=None
398+ Controls the randomness.
399+ Pass an int for reproducible output across multiple function calls.
395400 groups: Tuple[str, ...]
396401 Column names used to group the data
397402 """
@@ -485,8 +490,9 @@ class MultiMarkovHoleGenerator(_HoleGenerator):
485490 Names of the columns for which holes must be created, by default None
486491 ratio_masked : Optional[float], optional
487492 Ratio of masked values to add, by default 0.05
488- random_state : Optional[int], optional
489- The seed used by the random number generator, by default 42.
493+ random_state : int, RandomState instance or None, default=None
494+ Controls the randomness.
495+ Pass an int for reproducible output across multiple function calls.
490496 groups: Tuple[str, ...]
491497 Column names used to group the data
492498 """
@@ -634,8 +640,9 @@ class GroupedHoleGenerator(_HoleGenerator):
634640 Names of the columns for which holes must be created, by default None
635641 ratio_masked : Optional[float], optional
636642 Ratio of masked to add, by default 0.05
637- random_state : Optional[int], optional
638- The seed used by the random number generator, by default 42.
643+ random_state : int, RandomState instance or None, default=None
644+ Controls the randomness.
645+ Pass an int for reproducible output across multiple function calls.
639646 groups : Tuple[str, ...]
640647 Names of the columns forming the groups, by default []
641648 """
0 commit comments