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

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])
主站蜘蛛池模板: 三亚市| 内江市| 乐都县| 南陵县| 建水县| 新宁县| 东辽县| 辽中县| 西林县| 安福县| 榆社县| 彰化市| 鄂州市| 顺昌县| 柯坪县| 鄂托克旗| 堆龙德庆县| 大邑县| 新巴尔虎右旗| 都匀市| 佛坪县| 清河县| 海宁市| 海南省| 托克逊县| 青铜峡市| 周宁县| 泗水县| 眉山市| 云南省| 武穴市| 定远县| 临海市| 岢岚县| 抚宁县| 盐山县| 张家港市| 延寿县| 古田县| 河北省| 峨边|