Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [roc]

ROC (Receiver Operating Characteristic) curve is a graphical plot comparing the true positive and false positive rates of a classifier as its discrimination threshold is varied.

-1 votes
0 answers
28 views

Is there an R program that plot ROC curve nicely? [closed]

Is there any package that allows me to plot ROC curve like this? ? The 0.95,0.9 are particular threshold values. I tried the package verification with roc.plot(truth,v,xlab="FDR",ylab="...
monotonic's user avatar
  • 578
0 votes
0 answers
22 views

PRROC package - foreground background data - R

I'm currently trying to draw ROC and precision-recall curves for my model and struggling a bit to understand how to use my data for the PRROC package of R. I have a data frame containing different ...
user26317811's user avatar
0 votes
0 answers
30 views

TypeError: Singleton array array(1) cannot be considered a valid collection

I have a dataset where my target variable is a number between 1 and 8. Now I am going to implement Cubic SVM. import numpy as np import pandas as pd from sklearn.model_selection import ...
Farshadih7's user avatar
0 votes
0 answers
57 views

Plot ROC and nomogram after multiple imputation

How to do ROC and nomogram plotting after multiple imputation with the "mice" package? I found online that I could use the "pool_performance" function for calibration curve ...
master's user avatar
  • 1
-1 votes
1 answer
158 views

Logistic Regression Model - Prediction and ROC AUC

I am building a Logistic Regression using statsmodels (statsmodels.api) and would like to understand how to get predictions for the test dataset. This is what I have so far: x_train_data, x_test_data, ...
user3003605's user avatar
0 votes
1 answer
28 views

Different values between auc obtained from cross_validate and RocCurveDisplay

I tried two ways to calculate AUC score after training a Random Forest classifier. The first one is obtaining the metric from the cross_validate function: numeric_transformer = make_pipeline( ...
Yuno Gasai's user avatar
0 votes
1 answer
92 views

Switching binary classification python scikit-learn model to multi-class classification model

I'm currently having trouble switching the following code to fit a multiclass variable (3 levels). # data import from ucimlrepo import fetch_ucirepo import numpy as np import pandas as pd import ...
Daniel Shiverman's user avatar
0 votes
0 answers
40 views

ROC Surface plot

How Can I draw ROC surface plot in R by coding as shown in the figure? library(scatterplot3d) a1=1 a2=1 b1=4 b2=2 d1=9 d2=4 n=100 x1 <-x2 <-seq(.001,.95, length =n) x=expand.grid(x1, x2) f=...
Ertan Akgenç's user avatar
2 votes
1 answer
44 views

How can I add cut-off points to ROC curve plot in R?

Is there a simple way to do this? I am trying to make an ROC curve in R that displays marked point corresponding to criterion/cut-off values. This is the code I have in RStudio (below): library(pROC) ...
Nat's user avatar
  • 23
4 votes
1 answer
93 views

Different ROC optimal cutoff obtained from different functions with same methods

I just tried to calculate optimal cutoff from a ROC curve. However, when I tried several functions from different packages, they returned different results. Which one is corrent one if I want to use ...
W. Fan's user avatar
  • 43
0 votes
0 answers
5 views

How to find cutoff in r

How do I find the best cutoff in roc. how do I set the cutoff for the table function `roc6<-read.csv("ROC6.csv", header = T) model6<-glm(Gp~IL6 + CC + Glucose + Lactate + Protein, ...
Srinivasa 's user avatar
0 votes
1 answer
276 views

How to plot multiple ROC curves in one plot in R from three machine learning algorithms ran in tidymodels?

I ran three machine learning algorithms (logistic regression, xg-boost, random forest) on my data named 'muvr_model_1' using tidymodels package in R using following codes; library(dplyr) library(...
Tabbi's user avatar
  • 69
0 votes
0 answers
35 views

Wrong value of 1-specificity when drawing ROC curve when setting "legacy.axes = TRUE"

I had drawn a ROC curve using the following codes: roc_plot <- function(data, x, y){ fit <- roc(response = data[[x]], predictor = data[[y]]) plot(fit, print.auc = T, ...
Benjamin's user avatar
0 votes
1 answer
40 views

ROC surface plot in R or Python

Let X,Y,Z be random variables from F1,F2,F3 cdf,respectively. I want to write the manuel code for the ROC surface plot. How can I do it? By using R studio or Python. Thank you for your helps. x<-rW(...
Ertan Akgenç's user avatar
0 votes
0 answers
192 views

Computing AUC and ROC curve with micro and macro - average on multi-class data in Scikit-Learn

I am computing and plotting AUC and ROC curves for multi-class data for the output of 3 different classifier. I want to see the difference in using micro and macro average on plotting ROC curves in a ...
Edoardo Taccaliti's user avatar

15 30 50 per page
1
2 3 4 5
71