Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable argument modification for custom optimizer class that has been loaded via yaml #69

Open
danrgll opened this issue Apr 25, 2024 · 0 comments
Milestone

Comments

@danrgll
Copy link
Collaborator

danrgll commented Apr 25, 2024

Custom optimizers are specified through neps.run() by using the searcher argument, which inherits from BaseOptimizer. For loading the custom optimizer via 'run_args', we have chosen a design where users do not define and load an instance directly. Instead, they provide the class name and the path to its implementation. The problem arises with the inability to load custom settings for these optimizers.

Proposed Solution: Adopt the use of 'searcher_kwargs' for custom optimizers, similar to its application for built-in searchers.

Example:

run_args:
    searcher:
         name: BayesianOptimizer
         path: /path/to/optimizer
    searcher_kwargs:
         initial_design_size: 30
@danrgll danrgll mentioned this issue Apr 25, 2024
12 tasks
@eddiebergman eddiebergman added this to the Declaritive milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants