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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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