I understand that ROC
is drawn between tpr
and fpr
, but I am having difficulty in determining which parameters I should vary to get different tpr
/fpr
pairs.
相关问题
- cforest party unbalanced classes
- RandomForestRegressor and feature_importances_ err
- Predicted probabilities in R ranger package
- Plotting the ROC curve
- How does sklearn actually calculate AUROC?
相关文章
- Use of randomforest() for classification in R?
- ROC for random forest
- Extract and Visualize Model Trees from Sparklyr
- How to plot a ROC curve using ROCR package in r, *
- Why connection is terminating
- Size of sample in Random Forest Regression
- Plotting a linear discriminant analysis, classific
- caret train rf model - inexplicably long execution
I wrote this answer on a similar question.
Basicly you can increase weighting on certain classes and/or downsample other classes and/or change vote aggregating rule.
[[EDITED 13.15PM CEST 1st July 2015]] @ "the two classes are very balanced – Suryavansh"
In such case your data is balanced you should mainly go with option 3 (changing aggregation rule). In randomForest this can be accessed with cutoff parameter either at training or at predicting. In other settings you may have to yourself to extract all cross-validated votes from all trees, apply a series of rules and calculate the resulting fpr and fnr.
.
.
.