MCPcopy
hub / github.com/hyperopt/hyperopt / loss

Method loss

hyperopt/base.py:973–975  ·  view source on GitHub ↗

Extract the scalar-valued loss from a result document

(self, result, config=None)

Source from the content-addressed store, hash-verified

971 return "Domain{%s}" % str(self.fn)
972
973 def loss(self, result, config=None):
974 """Extract the scalar-valued loss from a result document"""
975 return result.get("loss", None)
976
977 def loss_variance(self, result, config=None):
978 """Return the variance in the estimate of the loss"""

Callers 2

true_lossMethod · 0.95
__init__Method · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected