- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 128字
- 2021-07-02 20:49:15
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
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- Learn TypeScript 3 by Building Web Applications
- GitLab Cookbook
- Mastering Zabbix(Second Edition)
- 少年輕松趣編程:用Scratch創作自己的小游戲
- INSTANT MinGW Starter
- Visual Basic程序設計習題解答與上機指導
- Windows內核編程
- 深度學習原理與PyTorch實戰(第2版)
- C語言程序設計
- Python第三方庫開發應用實戰
- Elasticsearch實戰(第2版)
- PHP從入門到精通(微視頻精編版)
- 谷歌JAX深度學習從零開始學
- jQuery Mobile從入門到精通