install.packages("pr.curve")
Installing package into ‘C:/Users/DELL/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘pr.curve’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Error in m[1, 2:3] : incorrect number of dimensions
also this error is occurred. how to solve this?
xgb_final_roc
install.packages("pr.curve")
library(pr.curve)
xgb_final_auprc <- PRROC::pr.curve(scores.class0 = xgb_final_scores[xgb_final_scores$labels == "one", ]$event_prob,
scores.class1 = xgb_final_scores[xgb_final_scores$labels == "zero", ]$event_prob,
curve=T)
paste("Area under the Precision-Recall curve:", round(xgb_final_auprc$auc.integral, 7))