|
QDpy
|
Coevolve specialist models and measured assessment tasks. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.acdc.ACDCTaskRequest |
| Information for generating a verifiable task variant. More... | |
| class | qdpy.algorithms.acdc.ACDCResult |
| Model and task archives after a bounded AC/DC run. More... | |
| class | qdpy.algorithms.acdc._Assessments |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.acdc.acdc (initial_models, initial_tasks, *, vary_model, propose_task, evaluate, task_descriptor, budget, rounds, model_capacity=8, offspring_size=8, active_task_capacity=16, task_period=2, task_proposals=4, task_novelty=.05, passing_score=.5, difficulty_target=.5, novelty_neighbors=3, selection="novelty", valid_model=None, valid_task=None, team_size=3, team_budget=0, seed=0) | |
| Evolve model skills and assess new tasks under exact pairwise call budgets. | |
Coevolve specialist models and measured assessment tasks.
Definition in file acdc.py.
| qdpy.algorithms.acdc.acdc | ( | initial_models, | |
| initial_tasks, | |||
| * | , | ||
| vary_model, | |||
| propose_task, | |||
| evaluate, | |||
| task_descriptor, | |||
| budget, | |||
| rounds, | |||
| model_capacity = 8, | |||
| offspring_size = 8, | |||
| active_task_capacity = 16, | |||
| task_period = 2, | |||
| task_proposals = 4, | |||
| task_novelty = .05, | |||
| passing_score = .5, | |||
| difficulty_target = .5, | |||
| novelty_neighbors = 3, | |||
| selection = "novelty", | |||
| valid_model = None, | |||
| valid_task = None, | |||
| team_size = 3, | |||
| team_budget = 0, | |||
| seed = 0 ) |
Evolve model skills and assess new tasks under exact pairwise call budgets.
| initial_models | Ordered, distinct immutable model payloads. |
| initial_tasks | Ordered, distinct immutable seed assessment payloads. |
| vary_model | Callable (parents, rng), returning a new immutable model or None. |
| propose_task | Optional callable (ACDCTaskRequest, rng), returning a new task or None. |
| evaluate | Callable (model, task), returning a deterministic score in [0, 1]. |
| task_descriptor | Callable (task) returning a fixed-width nonzero embedding. |
| budget | Search assessment cap, including seed pairs and new task screening. |
| rounds | Maximum model generations. |
| model_capacity | Number of active parent models. |
| offspring_size | Maximum number of model proposals each generation. |
| active_task_capacity | Maximum number of active assessment tasks. |
| task_period | Generations between task proposal batches. |
| task_proposals | Maximum number of new task proposals each task generation. |
| task_novelty | Minimum cosine distance from every previous accepted task. |
| passing_score | Score needed to solve a task, in (0, 1]. |
| difficulty_target | Pass rate used to request easier or harder variants. |
| novelty_neighbors | Maximum number of fitter models used in skill novelty. |
| selection | "novelty" for AC/DC or "quality" for mean-solved selection. |
| valid_model | Optional predicate to reject invalid models before measuring them. |
| valid_task | Optional predicate for task validation before assessment. |
| team_size | Maximum number of deployable models selected for task coverage. |
| team_budget | Separate cap on final missing historical assessments. |
| seed | Private model and task seeds. |
Select models for unique skills and keep novel, solvable assessments. Measure every active model on new tasks before admitting them. Retain the best model and rank the others by difficulty-weighted solved tasks missed by fitter models. Task proposals receive the parent's pass rate and direction. The active task panel rolls forward as novel tasks enter. A proposal is measured only when its whole assessment panel fits the search budget. Scores for identical pairs are reused across generations. For final team selection, score the historical panel if its missing pairs fit the separate team budget. Otherwise score coverage on the fully observed active panel. Both stages use caller-owned evaluators.