官术网_书友最值得收藏!

Testing

After you're satisfied with the training output and accuracy, you can run the network on the test dataset to measure its performance!

Keep in mind to perform this  only   after you've completed the training and are satisfied with the results.

A good result will obtain an accuracy higher than 95%. Some simple models have been known to achieve even up to 99.7% accuracy! We can test the model, as shown here:

# Comparing the labels predicted by our model with the actual labels

score = model.evaluate(X_test, y_test, batch_size=32, verbose=1,sample_weight=None)
# Printing the result
print('Test score:', score[0])
print('Test accuracy:', score[1])
主站蜘蛛池模板: 邵武市| 兰坪| 扎赉特旗| 安阳县| 龙口市| 秦安县| 西乡县| 会泽县| 高唐县| 南平市| 平山县| 中超| 台江县| 金昌市| 临洮县| 临高县| 筠连县| 涡阳县| 体育| 双峰县| 孝昌县| 通河县| 永宁县| 宁南县| 普陀区| 静宁县| 南丰县| 湖北省| 调兵山市| 仁寿县| 铁岭市| 阳原县| 宜川县| 蒲江县| 乌兰察布市| 朔州市| 中江县| 峨眉山市| 温宿县| 密山市| 新郑市|