- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 137字
- 2021-07-02 20:49:15
How it works...
The following is the performance of the grid-searched model on both the training and cross-validation datasets. We can observe that the AUC has increased by one unit in both training and cross-validation scenarios, after performing a grid search. The training and cross validation AUC after the grid search is 0.996 and 0.997 respectively.
# Performance on Training data after grid search
> train_performance.grid <- h2o.performance(best_dl_model,train = T)
> train_performance.grid@metrics$AUC
[1] 0.9965881
# Performance on Cross validation data after grid search
> xval_performance.grid <- h2o.performance(best_dl_model,xval = T)
> xval_performance.grid@metrics$AUC
[1] 0.9979131
Now, let's assess the performance of the best grid-searched model on the test dataset. We can observe that the AUC has increased by 0.25 units after performing the grid search. The AUC on the test data is 0.993.
# Predict the outcome on test dataset
yhat <- h2o.predict(best_dl_model, occupancy_test.hex)
# Performance of the best grid-searched model on the Test dataset
> yhat$pmax <- pmax(yhat$p0, yhat$p1, na.rm = TRUE)
> roc_obj <- pROC::roc(c(as.matrix(occupancy_test.hex$Occupancy)), c(as.matrix(yhat$pmax)))
> pROC::auc(roc_obj)
Area under the curve: 0.9932
推薦閱讀
- Advanced Machine Learning with Python
- 企業級Java EE架構設計精深實踐
- HBase從入門到實戰
- Apache Spark 2 for Beginners
- Ray分布式機器學習:利用Ray進行大模型的數據處理、訓練、推理和部署
- Learning JavaScript Data Structures and Algorithms
- Windows Phone 7.5:Building Location-aware Applications
- 機器學習微積分一本通(Python版)
- OpenCV 3 Blueprints
- 工業機器人離線編程
- Arduino Wearable Projects
- 深度學習程序設計實戰
- 程序員的成長課
- Mastering Object:Oriented Python(Second Edition)
- Flask開發Web搜索引擎入門與實戰