在训练集上使用Keras的不同准确性

时间:2019-05-28 15:46:44

标签: python tensorflow machine-learning keras multilabel-classification

我正在训练关于keras的多标签分类模型,经过10个历时,它在训练集上显示了91.80%的准确性,在验证集上显示了86.95%的准确性。当我使用模型的预测方法测试相同的训练集时,我得到了不同的准确性(78%)。是因为keras使用不同的方法来计算精度吗?

关于如何克服这种差异的任何想法都会受到赞赏。

请找到培训和测试代码@GithubGist

PdfReader reader = new PdfReader(pdf);
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(RESULT));
List<com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpLocation> locations = new ArrayList<>();
locations.add(new com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpLocation(1, new Rectangle(150, 150, 350, 350), BaseColor.RED));
new PdfCleanUpProcessor(locations, stamper).cleanUp();
stamper.close();

0 个答案:

没有答案