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

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])
主站蜘蛛池模板: 岫岩| 同德县| 济阳县| 新邵县| 平遥县| 阳高县| 桑植县| 万荣县| 阳西县| 巴青县| 武山县| 乌兰浩特市| 陵川县| 云浮市| 沙洋县| 沈丘县| 四会市| 阳西县| 安福县| 化隆| 化隆| 江永县| 清丰县| 灵石县| 郸城县| 黄大仙区| 盐边县| 余庆县| 文水县| 广宗县| 堆龙德庆县| 信宜市| 晋州市| 南安市| 荥经县| 姜堰市| 新丰县| 崇信县| 大化| 四平市| 新郑市|