def parse_config(cls, param_dict): return DefaultClassConfig(param_dict, [ConfigParameter('max_num_states', int, 5), ConfigParameter('elitism', int, 0), ConfigParameter('survival_threshold', float, 0.2), ConfigParameter('min_species_size', int, 2) ])
def parse_config(cls, param_dict): return DefaultClassConfig(param_dict, [ ConfigParameter('elitism', int, 0), ConfigParameter('survival_threshold', float, 0.2), ConfigParameter('min_species_size', int, 2), ConfigParameter('fitness_min_divisor', float, 1.0) ])
def parse_config(cls, param_dict: Dict[str, str]) -> DefaultClassConfig: return DefaultClassConfig( param_dict, [ ConfigParameter("elitism", int, 0), ConfigParameter("survival_threshold", float, 0.2), ConfigParameter("min_species_size", int, 2), ], )
def parse_config(cls, param_dict): """Parse the speciation parameter values Args: param_dict (dict): A dictionary of parameter values. Returns: DefaultClassConfig: The speciation configuration. """ return DefaultClassConfig( param_dict, [ConfigParameter('compatibility_threshold', float)])
def parse_config(cls, param_dict): """ add init and min distance in config. :param param_dict: parameter dictionary. :return: config. """ return DefaultClassConfig(param_dict, [ ConfigParameter('init_distance', float, 5), ConfigParameter('min_distance', float, 0.2), ConfigParameter('correlation_rate', float, -0.5), ConfigParameter('search_count', int, 1), ConfigParameter('cluster_method', str, "kmeans++") ])
def parse_config(cls, param_dict): """Parses the stagnation configuration parameters. Config Parameters: species_fitness_func (str): The function (mean, max) for aggregating the fitnesses of the members of each species. max_stagnation (int): The maximum number of generations a species can stall for before being deemed stagnant. species_elitism (int): The minimum number of species that should be retained. TODO: Refactor `species_elitism` as `min_species` Args: param_dict: ... Returns: DefaultClassConfig: ... """ return DefaultClassConfig(param_dict, [ ConfigParameter('species_fitness_func', str, 'mean'), ConfigParameter('max_stagnation', int, 15), ConfigParameter('species_elitism', int, 0) ])
def parse_config(cls, param_dict): return DefaultClassConfig(param_dict, [])
def parse_config(cls, param_dict): return DefaultClassConfig( param_dict, [ConfigParameter('compatibility_threshold', float)])
def parse_config(cls, param_dict: Dict[str, str]) -> DefaultClassConfig: return DefaultClassConfig( param_dict, [ConfigParameter("compatibility_threshold", float)])
def parse_config(cls, param_dict: Dict[str, str]) -> DefaultClassConfig: return DefaultClassConfig(param_dict, [ ConfigParameter('species_fitness_func', str, 'mean'), ConfigParameter('max_stagnation', int, 15), ConfigParameter('species_elitism', int, 0) ])
def parse_config(cls, param_dict): return DefaultClassConfig(param_dict, [ ConfigParameter('species_fitness_func', str, 'mean'), ConfigParameter('stagnation_split_interval', int, 15) ])
def parse_config(cls, param_dict): return DefaultClassConfig(param_dict, [ ConfigParameter('elitism', int, 0), ConfigParameter('min_species_size', int, 2) ])