AUPR: AUPR

Description Usage Arguments Value Examples

View source: R/VariousFunctions.R

Description

Function Implementing metrics calculation of AUPR

Usage

1
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

1
2
3
4
5
#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")

DrugClust documentation built on May 30, 2017, 2:30 a.m.