R/plotFscore.R

################################################################################################
################################################################################################
###
### METHOD: plotFscore
### CLASS: --------
###
### Plot the fscore in relation with sensitivity and specificity
################################################################################################
################################################################################################
###
### INPUT
###
###     - tuning_grid: the output of tuningParametersComb.R                   
### OUTPUT
###
###     - A plot where in the x axis there are the sensitivity, in y axis there are the specificity, z-values: the fscore.
###     
###
################################################################################################
################################################################################################
plotFscore<-function(tuningTAB){

    map<-makecmap(tuningTAB$fscore,colFn=jet)
    plot(x=tuningTAB$tpr.sensitivity,y=tuningTAB$spc.specificity,pch = 16, 
    col = cmap(tuningTAB$fscore, map = map),xlab="sensitivity",ylab="specificity")
    hkey(map, 'fscore')
}

Try the SVM2CRM package in your browser

Any scripts or data that you put into this service are public.

SVM2CRM documentation built on May 11, 2019, 2 a.m.