@@ -62,7 +62,7 @@ def generate_folding(
6262 max_folds : int = 10 ,
6363 max_repeats : int = 5 ,
6464 strategies : list | None = None ,
65- random_state = None ,
65+ random_state : int | np . random . RandomState | None = None ,
6666 no_folds : bool = False ,
6767) -> dict :
6868 """
@@ -113,7 +113,7 @@ def generate_evaluation( # pylint: disable=too-many-locals
113113 strategies : list | None = None ,
114114 feasible_fold_score_bounds : bool | None = None ,
115115 aggregation : str | None = None ,
116- random_state = None ,
116+ random_state : int | np . random . RandomState | None = None ,
117117 return_scores : bool = False ,
118118 rounding_decimals : int | None = None ,
119119 no_name : bool = False ,
@@ -222,7 +222,7 @@ def generate_experiment(
222222 evaluation_params : dict | None = None ,
223223 feasible_dataset_score_bounds : bool | None = None ,
224224 aggregation : str | None = None ,
225- random_state = None ,
225+ random_state : int | np . random . RandomState | None = None ,
226226 return_scores : bool = False ,
227227 rounding_decimals : int | None = None ,
228228 score_subset : list | None = None ,
@@ -332,8 +332,12 @@ def get_dataset_score_bounds(
332332
333333
334334def generate_scores_for_testsets (
335- testsets , rounding_decimals = None , subset = None , random_state = None , aggregation = "mos"
336- ):
335+ testsets : list ,
336+ rounding_decimals : int | None = None ,
337+ subset : list | None = None ,
338+ random_state : int | np .random .RandomState | None = None ,
339+ aggregation : str = "mos"
340+ ) -> dict :
337341 """
338342 Sample scores for testsets
339343
@@ -375,18 +379,18 @@ def generate_scores_for_testsets(
375379
376380def generate_dataset_folding_multiclass (
377381 * ,
378- random_state = None ,
379- max_n_classes = 5 ,
380- min_n_classes = 3 ,
381- max_class_size = 200 ,
382- min_class_size = 10 ,
383- max_n_folds = 5 ,
384- max_n_repeats = 3 ,
385- average = None ,
386- aggregation = None ,
387- rounding_decimals = None ,
388- subset = None ,
389- ):
382+ random_state : int | np . random . RandomState | None = None ,
383+ max_n_classes : int = 5 ,
384+ min_n_classes : int = 3 ,
385+ max_class_size : int = 200 ,
386+ min_class_size : int = 10 ,
387+ max_n_folds : int = 5 ,
388+ max_n_repeats : int = 3 ,
389+ average : str | None = None ,
390+ aggregation : str | None = None ,
391+ rounding_decimals : int | None = None ,
392+ subset : list | None = None ,
393+ ) -> tuple :
390394 """
391395 Generates a multiclass dataset and folding with scores
392396
0 commit comments