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

Sklearn Tuner does not recognize executions_per_trial and distribution_strategy #1023

Open
Iphykay opened this issue Aug 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Iphykay
Copy link

Iphykay commented Aug 21, 2024

Describe the bug
When you add executions_per_trial and distribution_stategy arguments

reg_tuner = kt.tuners.SklearnTuner(oracle=kt.oracles.BayesianOptimizationOracle(objective=kt.Objective('score','max'), max_trials = max_trials), hypermodel=tunereg.myregclsmodels, scoring=scoring_,executions_per_trial=exctns_per_trial, overwrite=True, distribution_strategy=tf.distribute.MirroredStrategy(), directory=f'{pathHptLogs}', project_name=f'{something}')

To Reproduce

(https://colab.research.google.com/drive/1-XAUlX4OneNfy6ErGqyMGwmVXe-UXVh9#scrollTo=YmjNIU7Hg66G)

Expected behavior
For it to work.

Additional context

ValueError: Unrecognized arguments ['distribution_strategy', 'executions_per_trial'] for BaseTuner.__init__().

Would you like to help us fix it?

@Iphykay Iphykay added the bug Something isn't working label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant