Skip to content

Commit

Permalink
Pass down tuner_id from Tuner class constractor (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucdmkt committed Jun 16, 2020
1 parent 405ecb7 commit 8fc1694
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kerastuner/engine/tuner.py
Expand Up @@ -67,6 +67,7 @@ class Tuner(base_tuner.BaseTuner):
by this Tuner.
logger: Optional. Instance of Logger class, used for streaming data
to Cloud Service for monitoring.
tuner_id: Optional. If set, use this value as the id of this Tuner.
overwrite: Bool, default `False`. If `False`, reloads an existing project
of the same name if one is found. Otherwise, overwrites the project.
"""
Expand Down Expand Up @@ -115,6 +116,8 @@ def __init__(self,
# Save only the last N checkpoints.
self._save_n_checkpoints = 10

self.tuner_id = tuner_id or self.tuner_id

def run_trial(self, trial, *fit_args, **fit_kwargs):
"""Evaluates a set of hyperparameter values.
Expand Down

0 comments on commit 8fc1694

Please sign in to comment.