Skip to content

How to get candidate solutions from each iteration? #72

Open
@BruthYU

Description

Thanks for the excellent work 🥳

  1. I'm looking for black-box optimization algorithms to perform prompt tuning on my neural network, which requires candidate solutions from each iteration.
  2. Following the “ask-tell” form of pycma, the pseudo-code is shown as below:
while not es.stop():
    solutions = es.ask()
    fitness = [cma.ff.rosen(s) for s in solutions]
    es.tell(solutions, fitness)
  1. Question: How can I obtain the solutions from each iteration to calculate new fitness (e.g. loss functions)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions