QDpy
Loading...
Searching...
No Matches
m2n2.py File Reference

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.

Detailed Description

Model Merging of Natural Niches for aligned numeric checkpoints.

See also
https://doi.org/10.1145/3712256.3726329

Definition in file m2n2.py.

Function Documentation

◆ m2n2()

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.

Parameters
checkpointsAt least two seed checkpoints of aligned numeric tensors.
evaluateCallable (checkpoint) returning one score in [0, 1] per fixed example.
budgetTotal measured models, including every seed.
population_sizeMaximum number of live models.
competition"continuous", "binary", or mean-fitness control ("mean").
attractionWhether to draw the second parent by its weighted complementary gains.
schedule_powerPositive power of search progress for expanding merge bounds.
seedPrivate variation seed.
Returns
M2N2Result containing the population, best raw model and counts.
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.

Definition at line 100 of file m2n2.py.