Learn R Programming

DrugClust (version 0.2)

AUPR: AUPR

Description

Function Implementing metrics calculation of AUPR

Usage

AUPR(predizioni, testpharmat, vectorAUPR, name)

Arguments

predizioni
matrix of predictions
testpharmat
matrix of test for the Side Effects
vectorAUPR
empty vector to store AUPR
name
name of the clustering algorithm used (KSeeds, KMeans,PAM)

Value

vectorAUPR vector containing AUPR values for the various folds, the function also draws AUPR graphs

Examples

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

Run the code above in your browser using DataLab