Пример #1
0
 def _validate_top_models_to_improve(self):
     """ Validates top_models_to_improve parameter"""
     if (isinstance(self.top_models_to_improve, str)
             and self.top_models_to_improve == "auto"):
         return
     check_positive_integer(self.top_models_to_improve,
                            "top_models_to_improve")
Пример #2
0
 def _validate_hill_climbing_steps(self):
     """ Validates hill_climbing_steps parameter"""
     if (
         isinstance(self.hill_climbing_steps, str)
         and self.hill_climbing_steps == "auto"
     ):
         return
     check_positive_integer(self.hill_climbing_steps, "hill_climbing_steps")
Пример #3
0
 def _validate_random_state(self):
     """ Validates random_state parameter"""
     check_positive_integer(self.random_state, "random_state")
Пример #4
0
 def _validate_verbose(self):
     """ Validates verbose parameter"""
     check_positive_integer(self.verbose, "verbose")