How to add more input arguments to objection function

46 views
Skip to first unread message

David King

unread,
Nov 12, 2021, 7:20:47 PM11/12/21
to hyperopt-discuss
Is it possible to add additional arguments. For example, adding default arguments as the following example works: 

      def objective(args, idx = 10)

but the following example would show positional error: 

      def objective(args)

Thanks

David King

unread,
Nov 12, 2021, 7:52:22 PM11/12/21
to hyperopt-discuss
One option is to use hp.choice to introduction two cases, e.g. 1st case it hyperparameter, 2nd case contain arguments with fixed value. Just wondering if that will slow down the optimization process
Reply all
Reply to author
Forward
0 new messages