I want to use AUC as the performance measure, but RFE only support RMSE, RSquared, Accuracy, Kappa. How can I use a customized metric such as auc?
R package, Caret RFE function, how to customize metric to use AUC?
7.7k Views Asked by user2684099 At
1
There are 1 best solutions below
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in R-CARET
- How to find algo type(regression,classification) in Caret in R for all algos at once?
- nearZeroVar in caret returns vary when using foreach
- Using ordinal variables in rpart and caret without converting to dummy categorical variables
- caret with SNOW not using parallel processor on a particular set of data
- caret - error - Something is wrong - all the ROC metric values are missing:
- How to predict probabilities on test dataset in R's caret package?
- How do I deal with missing values on every row when using caret for prediction?
- logistic regression with caret and glmnet in R
- Access indices of each CV fold for custom metric function in caret
- How to sample/partition panel data by individuals( preferably with caret library)?
- Is this the correct way of getting in-sample and out-of-sample predictions / performance in R's caret package?
- R error on train data using caret
- Ada in R giving me single classification
- Speed difference between caret and klaR packages, for Naive Bayes
- how to debug errors like: "dim(x) must have a positive length" with caret
Related Questions in RFE
- Feature selection SVM-Recursive Feature elimination (SVM-RFE) with Libsvm, the accuracy result is worse than without feature selection, why?
- Unexpected Error in Running Recursive Feature Elimination (RFE) Script
- Receiving Error when Running RFE codes in R
- Sklearn RFE, pipeline and cross validation
- TypeError: __init__() takes 2 positional arguments but 3 were given in RFE
- Apply MinMaxScaler() to RFECV() with a pipeline
- Exactly same values for accuracy in RFECV
- Can't predict new data after training RFE and model in a pipeline
- R package, Caret RFE function, how to customize metric to use AUC?
- How long does the operation take rfe in R?
- Is the number in RFECV gridscore equivalent to the selected features?
- caret-rfe: there should be the same number of samples in x and y
- How to plot a ROC curve for the best model in RFE in caret package
- Force RFECV to keep some features
- Feature Selection in caret rfe + sum with ROC
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You have to specify a custom
summaryFunction()within yourtrainControl()object and then select an appropriate section metric from thatsummaryFunction(). Caret also includes a function for AUC calledtwoClassSummary()so you don't even have the write that yourself. Here is an example:EDIT: Just realized that you want it for
rfe()- the same thing holds but you then have to edit the "summary" element of your rfeFuncs object in the same fashion. Ex: