pred.values {Immigrate} | R Documentation |
pred.values
Description
This function performs some statistical value prediction
Usage
pred.values(y_train, y_test, pred_train, pred_test)
Arguments
y_train |
label vector for training data |
y_test |
label vector for test data |
pred_train |
predicted probabilities for training data |
pred_test |
predicted probabilities for test data |
Value
AUC_train |
AUC for training data |
AUC_test |
AUC for test data |
accuracy_test |
accuracy for test data |
precision_test |
precision for test data |
recall_test |
recall for test data |
F1_test |
F1 score for test data |
thre |
threshold to separate two labels, obtained from training data |
Examples
y_train<-c(0,1,0,1,0,1)
y_test<-c(0,1,0,1)
pred_train<-c(0.77,0.89,0.32,0.96,0.10,0.67)
pred_test<-c(0.68,0.75,0.50,0.81)
re<-pred.values(y_train,y_test,pred_train,pred_test)
print(re)
[Package Immigrate version 0.2.1 Index]