我看到垃圾邮件预测将邮件分类为其他人制作的垃圾邮件和火腿.
[源代码]
https://github.com/nfmcclure/tensorflow_cookbook/blob/master/09_Recurrent_Neural_Networks/02_Implementing_RNN_for_Spam_Prediction/02_implementing_rnn.py
该程序生成以下值.(损失,准确)
Veiw结果截图
在此代码中,结果只是损失,准确性,
我认为准确性毫无意义.我需要精确度,召回值(F1测量)
但是,由于我的代码分析工作不正常,我知道Precision和Recall.但我不知道如何在此代码中计算(代码嵌入)Precision和Recall.