MCPcopy
hub / github.com/hyperopt/hyperopt / view

Method view

hyperopt/base.py:297–305  ·  view source on GitHub ↗
(self, exp_key=None, refresh=True)

Source from the content-addressed store, hash-verified

295 self.refresh()
296
297 def view(self, exp_key=None, refresh=True):
298 rval = object.__new__(self.__class__)
299 rval._exp_key = exp_key
300 rval._ids = self._ids
301 rval._dynamic_trials = self._dynamic_trials
302 rval.attachments = self.attachments
303 if refresh:
304 rval.refresh()
305 return rval
306
307 def aname(self, trial, name):
308 return "ATTACH::{}::{}".format(trial["tid"], name)

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.45

Tested by

no test coverage detected