File tree Expand file tree Collapse file tree
src/hyperactive/opt/_adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Adapter for gfo package."""
2+
23# copyright: hyperactive developers, MIT License (see LICENSE file)
34
45from hyperactive .base import BaseOptimizer
@@ -40,9 +41,7 @@ def _get_gfo_class(self):
4041 class
4142 The GFO class to use. One of the concrete GFO classes
4243 """
43- raise NotImplementedError (
44- "This method should be implemented in a subclass."
45- )
44+ raise NotImplementedError ("This method should be implemented in a subclass." )
4645
4746 def get_search_config (self ):
4847 """Get the search configuration.
@@ -143,5 +142,12 @@ def get_test_params(cls, parameter_set="default"):
143142 },
144143 "n_iter" : 100 ,
145144 }
146-
147- return [params_sklearn , params_ackley ]
145+ params_ackley_list = {
146+ "experiment" : ackley_exp ,
147+ "search_space" : {
148+ "x0" : list (np .linspace (- 5 , 5 , 10 )),
149+ "x1" : list (np .linspace (- 5 , 5 , 10 )),
150+ },
151+ "n_iter" : 100 ,
152+ }
153+ return [params_sklearn , params_ackley , params_ackley_list ]
You can’t perform that action at this time.
0 commit comments