W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
tf.metrics.precision_at_thresholds(
labels,
predictions,
thresholds,
weights=None,
metrics_collections=None,
updates_collections=None,
name=None
)
定義在:tensorflow/python/ops/metrics_impl.py.
計算predictions中不同thresholds的精度值.
該precision_at_thresholds函數為閾值的不同值創(chuàng)建了四個局部變量:true_positives,true_negatives,false_positives和false_negatives.precision[i]被定義為thresholds[i]上predictions的值的總權重,其中在labels中相應的條目是True,除以thresholds[i]上的值的總權重,即,true_positives[i] / (true_positives[i] + false_positives[i]).
為了估計數據流上的度量,該函數創(chuàng)建一個update_op操作來更新這些變量并返回precision.
如果weights是None,則權重默認為1,使用權重0來屏蔽值.
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯系方式:
更多建議: