- 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
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- OpenShift開發指南(原書第2版)
- Beginning Java Data Structures and Algorithms
- Building a RESTful Web Service with Spring
- Ext JS Data-driven Application Design
- Visual C++串口通信技術詳解(第2版)
- 高級C/C++編譯技術(典藏版)
- C語言程序設計
- The HTML and CSS Workshop
- Ext JS 4 Web Application Development Cookbook
- Mastering Apache Maven 3
- Internet of Things with ESP8266
- Mastering Concurrency in Python
- Python計算機視覺與深度學習實戰