MCPcopy Create free account
hub / github.com/tensorflow/models / process_compiled_metrics

Method process_compiled_metrics

official/core/base_task.py:210–221  ·  view source on GitHub ↗

Process and update compiled_metrics. call when using compile/fit API. Args: compiled_metrics: the compiled metrics (model.compiled_metrics). labels: a tensor or a nested structure of tensors. model_outputs: a tensor or a nested structure of tensors. For example, o

(self, compiled_metrics, labels, model_outputs)

Source from the content-addressed store, hash-verified

208 metric.update_state(labels, model_outputs)
209
210 def process_compiled_metrics(self, compiled_metrics, labels, model_outputs):
211 """Process and update compiled_metrics.
212
213 call when using compile/fit API.
214
215 Args:
216 compiled_metrics: the compiled metrics (model.compiled_metrics).
217 labels: a tensor or a nested structure of tensors.
218 model_outputs: a tensor or a nested structure of tensors. For example,
219 output of the keras model built by self.build_model.
220 """
221 compiled_metrics.update_state(labels, model_outputs)
222
223 def train_step(self,
224 inputs,

Callers 6

train_stepMethod · 0.95
validation_stepMethod · 0.95
train_stepMethod · 0.45
validation_stepMethod · 0.45
train_stepMethod · 0.45
validation_stepMethod · 0.45

Calls 1

update_stateMethod · 0.45

Tested by

no test coverage detected