org.platanios.tensorflow.api.ops.metrics
Name prefix for the created ops.
Default weights with which all computed metric values are multiplied.
Optional label for which we want to compute the precision.
Graph collections in which to add the metric variables (for streaming metrics).
Graph collections in which to add the metric values.
Graph collections in which to add the metric updates.
Graph collections in which to add the metric resets.
Computes the value of this metric for the provided predictions and targets, optionally weighted by weights
.
Computes the value of this metric for the provided predictions and targets, optionally weighted by weights
.
Tuple containing the predictions tensor and the targets tensor.
Optional tensor containing weights for the values.
Name prefix for the created ops.
Created output containing the metric value.
Default weights with which all computed metric values are multiplied.
Default weights with which all computed metric values are multiplied.
Optional label for which we want to compute the precision.
Name of this metric.
Name of this metric.
Name prefix for the created ops.
Graph collections in which to add the metric resets.
Creates ops for computing the value of this metric in a streaming fashion.
Creates ops for computing the value of this metric in a streaming fashion. This function returns an op for obtaining the value of this metric, as well as a pair of ops to update its accumulated value and reset it.
Tuple containing the predictions tensor and the targets tensor.
Optional tensor containing weights for the predictions.
Name prefix for the created ops.
Tuple containing: (i) an output representing the current value of the metric, (ii) an op used to update its current value and obtain the new value, and (iii) an op used to reset its value.
Graph collections in which to add the metric updates.
Graph collections in which to add the metric values.
Graph collections in which to add the metric variables (for streaming metrics).
Weights to multiply the provided values with when computing the value of this metric.
Weights to multiply the provided values with when computing the value of this metric.
Grouped precision metric.
The metric creates two local variables,
truePositives
andfalsePositives
that are used to compute the precision of some provided predictions and targets. The predictions must be in the form of predicted label indices. The precision is ultimately returned as an idempotent operation that simply dividestruePositives
bytruePositives + falsePositives
.For estimation of the metric over a stream of data, the function creates an
update
operation that updates these variables and returns the precision.If
weights
isNone
, the weights default to 1. Use weights of0
to mask values.