automl / neps

Neural Pipeline Search (NePS): Helps deep learning experts find the best neural pipeline.
https://automl.github.io/neps/
Apache License 2.0
39 stars 11 forks source link

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

Closed danrgll closed 2 weeks ago

danrgll commented 2 months ago

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:

searcher:
   name: BayesianOptimizer
   path: /path/to/optimizer
   initial_design_size: 30