asROCRPrediction
,
ROCR's performance
,
then ROCR's plot
function.See these methods in ROCR for further info.
plotROCRCurves(obj, meas1 = "tpr", meas2 = "fpr", avg = "threshold",
cols = NULL, ltys = NULL, add.legend = NULL, add.diag = TRUE,
perf.args = list(), legend.args = list(), task.id = NULL)
invisible(NULL)
].asROCRPrediction
;
getProbabilities
;
plotViperCharts
;
predict.WrappedModel
;
setPredictThreshold
;
setPredictType
Other roc: asROCRPrediction
;
plotViperCharts
lrn1 = makeLearner("classif.logreg", predict.type = "prob")
lrn2 = makeLearner("classif.rpart", predict.type = "prob")
b = benchmark(list(lrn1, lrn2), pid.task)
z = plotROCRCurves(b)
Run the code above in your browser using DataLab