You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model (python callable): black box function to be optimized: python function that returns the fitness as first argument it must take one configuration of the hyperparameters
hparams (python dictionnary): parameter space defined in the following format:
hparams={
"character1":[1,2,3],
"character2":["relu","sig"]
}
mut_rate (float between 0 and 1): the probability of mutating one gene
tourn_size (int): the size of the tournament
cxpb (float between 0 and 1): probability of crossing two individuals, otherwise the individuals are kept as such
mutpb (float between 0 and 1): probability to mutate an individual
nb_indiv (int): number of individuals per generation
nb_thread (int): number of processes needed for the GA to run
log_file (str): name of the file for saving the generations
recover_file (str): name of the log_file that you want to recover from
gray_code (bool): binary encoding technique: if True gray code is used, binary encoding if False
**kwargs is all the extra arguments that need to be passed to the model (a data reader for instance)
Outputs:
pops (list of populations(list of individuals)) this object is written in the pickle file but you can have it unpickled as the output of the algorithm