[tune] Tweaks to Trainable and Verbosity (#2889)

This commit is contained in:
Richard Liaw
2018-10-11 23:42:13 -07:00
committed by GitHub
parent 828fe24b39
commit f9b58d7b02
17 changed files with 160 additions and 47 deletions
+2 -2
View File
@@ -90,10 +90,10 @@ class FunctionRunner(Trainable):
_name = "func"
_default_config = DEFAULT_CONFIG
def _setup(self):
def _setup(self, config):
entrypoint = self._trainable_func()
self._status_reporter = StatusReporter()
scrubbed_config = self.config.copy()
scrubbed_config = config.copy()
for k in self._default_config:
if k in scrubbed_config:
del scrubbed_config[k]