- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 58字
- 2021-07-02 20:49:16
How it works...
Now, let's assess the performance of the model on train and test datasets. The AUC on the train data is 0.978 and on the test data is 0.982:
# Train accuracy (AUC)
> train_pred <- predict(model.nn,occupancy_train.x)
> train_yhat <- max.col(t(train_pred))-1
> roc_obj <- pROC::roc(c(occupancy_train.y), c(train_yhat))
> pROC::auc(roc_obj)
Area under the curve: 0.9786
#Test accuracy (AUC)
> test_pred <- predict(nnmodel,occupancy_test.x)
> test_yhat <- max.col(t(test_pred))-1
> roc_obj <- pROC::roc(c(occupancy_test.y), c(test_yhat))
> pROC::auc(roc_obj)
Area under the curve: 0.9824
推薦閱讀
- 深入核心的敏捷開發(fā):ThoughtWorks五大關(guān)鍵實踐
- 密碼學原理與Java實現(xiàn)
- Android項目開發(fā)入門教程
- Access 數(shù)據(jù)庫應(yīng)用教程
- Java 9 Programming Blueprints
- 區(qū)塊鏈:以太坊DApp開發(fā)實戰(zhàn)
- Visual Basic程序設(shè)計與應(yīng)用實踐教程
- JavaScript動態(tài)網(wǎng)頁開發(fā)詳解
- Python:Master the Art of Design Patterns
- Multithreading in C# 5.0 Cookbook
- 現(xiàn)代C++編程實戰(zhàn):132個核心技巧示例(原書第2版)
- Building Business Websites with Squarespace 7(Second Edition)
- Python硬件編程實戰(zhàn)
- HTML5與CSS3權(quán)威指南
- 軟硬件綜合系統(tǒng)軟件需求建模及可靠性綜合試驗、分析、評價技術(shù)