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

How it works...

The performance of the model can be assessed using many metrics such as accuracy, AUC, misclassification error (%), misclassification error count, F1-score, precision, recall, specificity, and so on. However, in this chapter, the assessment of the model performance is based on AUC.

The following is the training and cross validation accuracy for the trained model. The training and cross validation AUC is 0.984 and 0.982 respectively:

# Get the training accuracy (AUC)
> train_performance <- h2o.performance(occupancy.deepmodel,train = T)
> train_performance@metrics$AUC
[1] 0.9848667

# Get the cross-validation accuracy (AUC)
> xval_performance <- h2o.performance(occupancy.deepmodel,xval = T)
> xval_performance@metrics$AUC
[1] 0.9821723

As we have already provided test data in the model (as a validation dataset), the following is its performance. The AUC on the test data is 0.991.

# Get the testing accuracy(AUC)
> test_performance <- h2o.performance(occupancy.deepmodel,valid = T)
> test_performance@metrics$AUC
[1] 0.9905056
主站蜘蛛池模板: 沙坪坝区| 凭祥市| 军事| 江永县| 津市市| 荔浦县| 南召县| 炎陵县| 宜兴市| 隆林| 烟台市| 读书| 监利县| 桐乡市| 江永县| 广南县| 土默特左旗| 横山县| 昭觉县| 镇沅| 铜山县| 镇江市| 西华县| 霍山县| 个旧市| 凤翔县| 固安县| 家居| 察雅县| 双城市| 林甸县| 伊金霍洛旗| 望奎县| 黑河市| 临夏市| 油尖旺区| 浦北县| 固始县| 馆陶县| 永福县| 伊春市|