I'm using the SelectKBest() class for feature selection in sklearn. SelectKBest() can take a callable score function as an input. In this case I would like to use mutual_info_regression as the score function. mutual_info_regression can take a few parameters which I would like to set myself. For example, I would like to set the random_state = 0. The problem is I'm not sure how to pass parameters into the score function since the score function is itself a parameter in SelectKBest(). Obviously something like SelectKBest(score_func = mutual_info_classif(random_state=0)) won't work because the mutal_info_classif function would be called directly. I feel like this is probably a very basic question about python classes but I can't seem to find anything addressing what I'm looking for. Thanks in advance for your time!