EvoPrompt
Methods
__init__
It shares the same parameters as the Trainer class, with some additional unique parameters.
unique parameters:
evolution_method: Evolution method to use.para,ga,deare supported.para: Paraphrasingga: Genetic Algorithmsde: Differential Evolution
popsize: Population size.epoch: Number of generations.parent_selection_mode: Parent selection mode.random,wheel,tourare supported. only used whenevolution_methodisga.random: Random selectionwheel: Wheel selection, where the probability of selection is proportional to the fitness.tour: Tournament selection
child_selection_mode: Child selection mode.child,topkare supported.child: always update the generation with the next generation children.topk: Top-k selection. Select the topkprompts based on the fitness within parent and children generations.