|
QDpy
|
Model Merging of Natural Niches for aligned numeric checkpoints. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.m2n2.M2N2Model |
| A measured model and its evaluation panel. More... | |
| class | qdpy.algorithms.m2n2.M2N2Result |
| Final checkpoint population and separate measurement counters. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.m2n2.m2n2 (checkpoints, evaluate, *, budget, population_size=8, competition="continuous", attraction=True, schedule_power=1., seed=0) | |
| Search dynamic split points and complementary parent pairs. | |
Model Merging of Natural Niches for aligned numeric checkpoints.
Definition in file m2n2.py.
| qdpy.algorithms.m2n2.m2n2 | ( | checkpoints, | |
| evaluate, | |||
| * | , | ||
| budget, | |||
| population_size = 8, | |||
| competition = "continuous", | |||
| attraction = True, | |||
| schedule_power = 1., | |||
| seed = 0 ) |
Search dynamic split points and complementary parent pairs.
| checkpoints | At least two seed checkpoints of aligned numeric tensors. |
| evaluate | Callable (checkpoint) returning one score in [0, 1] per fixed example. |
| budget | Total measured models, including every seed. |
| population_size | Maximum number of live models. |
| competition | "continuous", "binary", or mean-fitness control ("mean"). |
| attraction | Whether to draw the second parent by its weighted complementary gains. |
| schedule_power | Positive power of search progress for expanding merge bounds. |
| seed | Private variation seed. |
Evolve an aligned checkpoint population under per-example competition. Sample the first parent by shared fitness, then the second by its directional improvements on the first parent's evaluation panel. Apply complementary SLERP ratios on the two sides of a flattened split. The eligible range of each parameter grows around its midpoint as the budget progresses. Rank prospective survivor pools with a common resource weight for each example.