官术网_书友最值得收藏!

  • 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
主站蜘蛛池模板: 大丰市| 镇宁| 仙桃市| 柳州市| 贵港市| 防城港市| 唐河县| 娄底市| 合肥市| 达日县| 龙岩市| 桃园县| 湖南省| 濉溪县| 江津市| 吴桥县| 巴东县| 承德市| 离岛区| 临武县| 久治县| 宕昌县| 如东县| 辰溪县| 鲁山县| 六枝特区| 视频| 澜沧| 福海县| 新乐市| 黔南| 瑞丽市| 德格县| 天津市| 固安县| 湟中县| 渝北区| 囊谦县| 新兴县| 德州市| 大洼县|