Learn R Programming

DrugClust (version 0.2)

AUC: AUC

Description

Function Implementing metrics calculation of AUC

Usage

AUC(predizioni, testpharmat, vectorAUC, name)

Arguments

predizioni
matrix of predictions
testpharmat
matrix of test for the side effects
vectorAUC
empty vector where the AUC values will be saved
name
string stating the name of the clustering Algorithm used, KSeeds, Kmeans or PAM

Value

vectorAUC vector containing the various AUC values for the various folds. Moreover the function draw the graph of AUC

Examples

Run this code
#' #Function for obtaining AUC
#Once you have obtained predizioni with the Prediction function you can apply
#this AUC function using the following command (testpharmat sideeffects test matrix)
#vectorAUC<-numeric()
#vectorAUC<-AUC(predizioni,testpharmat,vectorAUC,"KSeeds")

Run the code above in your browser using DataLab