MCPcopy
hub / github.com/hyperopt/hyperopt / insert_trial_docs

Method insert_trial_docs

hyperopt/base.py:443–446  ·  view source on GitHub ↗

trials - something like is returned by self.new_trial_docs()

(self, docs)

Source from the content-addressed store, hash-verified

441 # a real DB the steps should be separated.
442
443 def insert_trial_docs(self, docs):
444 """trials - something like is returned by self.new_trial_docs()"""
445 docs = [self.assert_valid_trial(SONify(doc)) for doc in docs]
446 return self._insert_trial_docs(docs)
447
448 def new_trial_ids(self, n):
449 aa = len(self._ids)

Callers 6

trials_from_docsFunction · 0.95
inject_resultsMethod · 0.80
fminMethod · 0.80
runMethod · 0.80
test_insert_syncMethod · 0.80

Calls 3

assert_valid_trialMethod · 0.95
_insert_trial_docsMethod · 0.95
SONifyFunction · 0.85

Tested by 1

test_insert_syncMethod · 0.64