- 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
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- PHP動態網站程序設計
- 深入理解Bootstrap
- Redis Applied Design Patterns
- OpenCV 3和Qt5計算機視覺應用開發
- Python 3破冰人工智能:從入門到實戰
- Learning Apache Kafka(Second Edition)
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- Hands-On Nuxt.js Web Development
- PHP 7從零基礎到項目實戰
- Getting Started with Polymer
- 深入理解BootLoader
- 深入淺出 HTTPS:從原理到實戰
- 零基礎C語言學習筆記
- 開源心法