Computes the percentage of values less than the given threshold.
Compat aliases for migration
See Migration guide for more details.
tf.metrics.percentage_below( values, threshold, weights=None, metrics_collections=None, updates_collections=None, name=None )
percentage_below function creates two local variables,
count that are used to compute the percentage of
values that fall below
threshold. This rate is weighted by
weights, and it is ultimately returned as
percentage which is an idempotent operation that simply divides
For estimation of the metric over a stream of data, the function creates an
update_op operation that updates these variables and returns the
None, weights default to 1. Use weights of 0 to mask values.
| || A numeric |
| ||A scalar threshold.|
| || Optional |
| ||An optional list of collections that the metric value variable should be added to.|
| ||An optional list of collections that the metric update ops should be added to.|
| ||An optional variable_scope name.|
| || A |
| || An operation that increments the |
| || If |
| ||If eager execution is enabled.|
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.