CHH3213 / Note-Ubuntu_CHH3213

ubuntu系统CHH3213上做的笔记
0 stars 0 forks source link

90. model.evaluate 和 model.predict 的区别 #90

Open CHH3213 opened 2 years ago

CHH3213 commented 2 years ago

https://blog.csdn.net/DoReAGON/article/details/88552348

-model.evaluate

输入数据和标签,输出损失和精确度.

    # 评估模型,不输出预测结果
    loss,accuracy = model.evaluate(X_test,Y_test)
    print('\ntest loss',loss)
    print('accuracy',accuracy)