Skip to content

Sklearn Tuner does not recognize executions_per_trial and distribution_strategy #1023

@Iphykay

Description

@Iphykay

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions