|
QDpy
|
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. | |
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.
| qdpy.algorithms.melita.MEliTA.run | ( | self, | |
| budget, | |||
| * | , | ||
| proposal_limit = None ) |
Spend up to budget coherence calls with a separate edit cap.
| budget | Maximum coherence assessments for this call, including direct combinations. |
| proposal_limit | Maximum attempted edits and initializations. Defaults to ten times budget. |
Score distinct combinations in direct-first order when the final edit is budget-cut.