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

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])
主站蜘蛛池模板: 类乌齐县| 新和县| 礼泉县| 镇平县| 靖安县| 海城市| 棋牌| 祁连县| 竹溪县| 克东县| 肇州县| 门头沟区| 盈江县| 满城县| 石柱| 中牟县| 宁强县| 十堰市| 陕西省| 多伦县| 揭阳市| 正镶白旗| 博罗县| 柯坪县| 翼城县| 九寨沟县| 霍林郭勒市| 汨罗市| 榆树市| 太康县| 余庆县| 柞水县| 儋州市| 贵州省| 桃江县| 潼南县| 宝兴县| 尼玛县| 仁寿县| 拉萨市| 新乡县|