QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.melita.MEliTA Class Reference

Search separable components and rank their combinations by coherence. More...

Public Member Functions

 run (self, budget, *, proposal_limit=None)
 Spend up to budget coherence calls with a separate edit cap.

Detailed Description

Search separable components and rank their combinations by coherence.

Mutate one component and consider partners from its new descriptor slice.

A component is an immutable hashable value. Each component determines
one independent grid axis. Assess the combination with its original
partners and with partners from other cells on the changed axis's
slice. Per edit, admit the highest-ranked combination that improves
its cell. Assessments have their own budget because one edit can
produce multiple combinations.

:param archive: Empty parentless regular best-only Grid with one signed objective.
:param initialize: Callable taking a local Generator and returning the initial components.
:param mutations: One callable per component, accepting (components, rng).
:param descriptors: One scalar descriptor callable per component.
:param coherence: Callable accepting the complete tuple and returning raw scalar quality.
:param transverse: If false, score the direct edited combination only.
:param seed: Private proposal seed.

Definition at line 31 of file melita.py.

Member Function Documentation

◆ run()

qdpy.algorithms.melita.MEliTA.run ( self,
budget,
* ,
proposal_limit = None )

Spend up to budget coherence calls with a separate edit cap.

Parameters
budgetMaximum coherence assessments for this call, including direct combinations.
proposal_limitMaximum attempted edits and initializations. Defaults to ten times budget.
Returns
MEliTAStats for this call.
Score distinct combinations in direct-first order when the final edit is budget-cut.

Definition at line 78 of file melita.py.


The documentation for this class was generated from the following file: