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)
                                ])
Esempio n. 2
0
 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)
     ])
Esempio n. 3
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),
         ],
     )
Esempio n. 4
0
    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)])
Esempio n. 5
0
    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++")
        ])
Esempio n. 6
0
    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, [])
Esempio n. 8
0
 def parse_config(cls, param_dict):
     return DefaultClassConfig(
         param_dict, [ConfigParameter('compatibility_threshold', float)])
Esempio n. 9
0
 def parse_config(cls, param_dict: Dict[str, str]) -> DefaultClassConfig:
     return DefaultClassConfig(
         param_dict, [ConfigParameter("compatibility_threshold", float)])
Esempio n. 10
0
 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)
     ])
Esempio n. 11
0
 def parse_config(cls, param_dict):
     return DefaultClassConfig(param_dict, [
         ConfigParameter('species_fitness_func', str, 'mean'),
         ConfigParameter('stagnation_split_interval', int, 15)
     ])
Esempio n. 12
0
 def parse_config(cls, param_dict):
     return DefaultClassConfig(param_dict, [
         ConfigParameter('elitism', int, 0),
         ConfigParameter('min_species_size', int, 2)
     ])