MCPcopy
hub / github.com/hyperopt/hyperopt / checkpoint

Method checkpoint

hyperopt/mongoexp.py:1159–1164  ·  view source on GitHub ↗
(self, result=None)

Source from the content-addressed store, hash-verified

1157 return logger.error(*args, **kwargs)
1158
1159 def checkpoint(self, result=None):
1160 if not self.read_only:
1161 handle = self.trials.handle
1162 handle.refresh(self.current_trial)
1163 if result is not None:
1164 return handle.update(self.current_trial, dict(result=result))
1165
1166 @property
1167 def attachments(self):

Callers 1

run_oneMethod · 0.95

Calls 2

refreshMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected