python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
When to use OneVsRestClassifier?
If the decision function of svm.SVC is by default "ovr", why would we use OneVsRestClassifier(svm.SVC(kernel="linear") instead of just svm.SVC(kernel="linear")?
Caterina
Votes: 0
Answers: 0
How to select the optimal probability threshold for classifiers in R?
I am creating a binary classifier in R, but I don't know what probability threshold to select for class separation.
The code is as follows:
tune.out <-
tune(svm, X0 ~ .,
data = data.f...
A Jorg
Votes: 0
Answers: 1
ValueError: multiclass format is not supported on ROC_Curve for text classification
I am trying to use ROC for evaluating my emotion text classifier model
This is my code for the ROC :
# ROC-AUC Curve
from sklearn.metrics import roc_curve, auc
import matplotlib.pyplot as plt
fpr, tpr...
Ronald Ferdinand
Votes: 0
Answers: 1
Warning message: In method$prob(modelFit =modelFit, newdata =newdata, submodels =param) : kernlab class probability calculations failed; returning NAs
I'm getting the following error above which seems to be related to the caret package. I have checked my data and don't have any NA values as they were all removed in the cleaning stages.
I'm trying t...
Fiona Doughan
Votes: 0
Answers: 1