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

Method get_config

tensorflow/python/keras/metrics.py:1858–1869  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1856 [(v, np.zeros((self.num_thresholds,))) for v in self.variables])
1857
1858 def get_config(self):
1859 config = {
1860 'num_thresholds': self.num_thresholds,
1861 'curve': self.curve.value,
1862 'summation_method': self.summation_method.value,
1863 # We remove the endpoint thresholds as an inverse of how the thresholds
1864 # were initialized. This ensures that a metric initialized from this
1865 # config has the same thresholds.
1866 'thresholds': self.thresholds[1:-1],
1867 }
1868 base_config = super(AUC, self).get_config()
1869 return dict(list(base_config.items()) + list(config.items()))
1870
1871
1872@keras_export('keras.metrics.CosineSimilarity')

Callers 15

test_configMethod · 0.95
testBasicLSTMCellMethod · 0.45
testResidualWrapperMethod · 0.45
testDeviceWrapperMethod · 0.45
test_meanMethod · 0.45
test_accuracyMethod · 0.45
test_configMethod · 0.45
test_configMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_configMethod · 0.76
testBasicLSTMCellMethod · 0.36
testResidualWrapperMethod · 0.36
testDeviceWrapperMethod · 0.36
test_meanMethod · 0.36
test_accuracyMethod · 0.36
test_configMethod · 0.36
test_configMethod · 0.36