tensorflow笔记(二十三)——tf.metrics

1.概述

tf.metrics主要是实现了评估相关的各种指标函数,比如mean、precesion、auc、precession、mse、precesion_at_k等等。以tf1.15为例,主要包括:

accuracy(...): Calculates how often predictions matches labels.
auc(...): Computes the approximate AUC via a Riemann sum.
average_precision_at_k(...): Computes average precision@k of predictions with respect to sparse labels.
false_negatives(...): Computes the total number of false negatives.
false_negatives_at_thresholds(...): Computes false negatives at provided threshold values.
false_positives(...): Sum the weights of false positives.
false_positives_at_thresholds(...): Computes false positives at provided threshold values.
mean(...): Computes the (weighted) mean of the given values.
mean_absolute_error(...): Computes the mean absolute error between the labels and predictions.
mean_cosine_distance(...): Computes the cosine distance between the labels and predictions.
mean_iou(...): Calculate per-step mean Intersection-Over-Union (mIOU).
mean_per_class_accuracy(...): Calculates the mean of the per-class accuracies.
mean_relative_error(...): Computes the mean relative error by normalizing with the given values.
mean_squared_error(...): Computes the mean squared error between the labels and predictions.
mean_tensor(...): Computes the element-wise (weighted) mean of the given tensors.
percentage_below(...): Computes the percentage of values less than the given threshold.
precision(...): Computes the precision of the predictions with respect to the labels.
precision_at_k(...): Computes precision@k of the predictions with respect to sparse labels.
precision_at_thresholds(...): Computes precision values for different thresholds on predictions.
precision_at_top_k(...): Computes precision@k of the predictions with respect to sparse labels.
recall(...)
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值