MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / values

Method values

tensorflow/contrib/training/python/training/hparam.py:626–633  ·  view source on GitHub ↗

Return the hyperparameter values as a Python dictionary. Returns: A dictionary with hyperparameter names as keys. The values are the hyperparameter values.

(self)

Source from the content-addressed store, hash-verified

624 return self.override_from_dict(values_map)
625
626 def values(self):
627 """Return the hyperparameter values as a Python dictionary.
628
629 Returns:
630 A dictionary with hyperparameter names as keys. The values are the
631 hyperparameter values.
632 """
633 return {n: getattr(self, n) for n in self._hparam_types.keys()}
634
635 def get(self, key, default=None):
636 """Returns the value of `key` if it exists, else `default`."""

Callers 15

to_jsonMethod · 0.95
__str__Method · 0.95
__repr__Method · 0.95
testEmptyMethod · 0.95
testSomeValuesMethod · 0.95
testSetFromMapMethod · 0.95
testListsMethod · 0.95
testJsonMethod · 0.95
testSetHParamMethod · 0.95
streaming_curve_pointsFunction · 0.45
aggregate_metric_mapFunction · 0.45

Calls 1

keysMethod · 0.45

Tested by 11

testEmptyMethod · 0.76
testSomeValuesMethod · 0.76
testSetFromMapMethod · 0.76
testListsMethod · 0.76
testJsonMethod · 0.76
testSetHParamMethod · 0.76
assert_expectedMethod · 0.36