Re: [R] Error in Rose Method (class balancing)

2020-07-25 Thread Rasmus Liland
On 2020-07-23 13:10 -0700, Jeff Newmiller wrote: > > I would recommend trying to use dput() > to remove the need for the file Awesome! I've been looking for dput() for a long time. Thank you! signature.asc Description: PGP signature __ R-help@r-p

Re: [R] Error in Rose Method (class balancing)

2020-07-25 Thread Neha gupta
OK thanks a lot David, I hope it will work for me. Best regards Neha On Saturday, July 25, 2020, David Winsemius wrote: > > On 7/24/20 3:08 AM, Neha gupta wrote: > > O, I am very sorry for that, I have now included > > output of dput is: structure(list(unique_id = c("L116", "L117", "L496",

Re: [R] Error in Rose Method (class balancing)

2020-07-24 Thread David Winsemius
On 7/24/20 3:08 AM, Neha gupta wrote: > O, I am very sorry for that, I have now included > > output of dput is: structure(list(unique_id = c("L116", "L117", > "L496", "L9719", > "L9720", "L9721", "L9722", "L9723", "L10200", "L10201", "L10202", > "L10203", "L10204", "L10205", "L10206", "L1070

Re: [R] Error in Rose Method (class balancing)

2020-07-24 Thread Neha gupta
O, I am very sorry for that, I have now included output of dput is: structure(list(unique_id = c("L116", "L117", "L496", "L9719", "L9720", "L9721", "L9722", "L9723", "L10200", "L10201", "L10202", "L10203", "L10204", "L10205", "L10206", "L10705", "L10706", "L10707", "L10708", "L10709", "L10710"

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Jeff Newmiller
All you did was include the dput command in your example. We need the output of dput, not the command itself. On July 23, 2020 2:43:31 PM PDT, Neha gupta wrote: >David, I understand that the file will not be in your directory but I >have >provided the data using dput? Didn't I? Previously member

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Neha gupta
David, I understand that the file will not be in your directory but I have provided the data using dput? Didn't I? Previously members of this group have used dput to provide the detail about their data. Seriously, I have no idea how else I can provide a reproducible example.

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread David Winsemius
On 7/23/20 9:34 AM, Neha gupta wrote: > > Hello David, file not found should be the path problem I guess. I just > forgot the pROC library, which I included here. These are all the > libraries I am using. > > library(caret) > library(farff) > library(DMwR) > library(pROC) > library(pls) > > set

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Jeff Newmiller
The R Administration and Installation manual explains this nomenclature. OP _is_ typically using two libraries... the one installed with R and the "personal" library which contains the packages installed by the user. You retrieve packages from libraries using library(somepackage) Of more releva

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Bert Gunter
Actually, you are using no libraries. You are using R *packages* . Don't ask me why the call is library() and not package() -- I'm just another worker bee. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breat

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Neha gupta
Hello David, file not found should be the path problem I guess. I just forgot the pROC library, which I included here. These are all the libraries I am using. library(caret) library(farff) library(DMwR) library(pROC) library(pls) setwd("C:/Users/PC/Documents") d=readARFF("bughunter.arff") dput( h

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread David Winsemius
On 7/23/20 7:01 AM, Neha gupta wrote: > > library(caret) > library(farff) > library(DMwR) > > d=readARFF("bughunter.arff") Error in readARFF("bughunter.arff") :   Assertion on 'path' failed: File does not exist: 'bughunter.arff'. I say again: > I suggest you read the Posting Guide, > restar

Re: [R] Error in Rose Method (class balancing)

2020-07-23 Thread Neha gupta
Hello David, thanks for your reply. I have added the information. library(caret) library(farff) library(DMwR) d=readARFF("bughunter.arff") dput( head( d, 30 ) ) index <- createDataPartition(d$`Bug class`, p = .70,list = FALSE) tr <- d[index, ] ts <- d[-index, ] boot3 <- trainControl(method =

Re: [R] Error in Rose Method (class balancing)

2020-07-22 Thread Rasmus Liland
On 2020-07-22 16:08 -0700, David Winsemius wrote: | On 7/22/20 3:43 PM, Neha gupta wrote: | | Hello, | | | | I get the following error when I use | | the ROSE class balancing method but | | when I use other methods like SMOTE, | | up, down, I do not get any error | | message. | | | | Somethin

Re: [R] Error in Rose Method (class balancing)

2020-07-22 Thread David Winsemius
On 7/22/20 3:43 PM, Neha gupta wrote: Hello, I get the following error when I use the ROSE class balancing method but when I use other methods like SMOTE, up, down, I do not get any error message. Something is wrong; all the ROC metric values are missing: ROC Sens Spec Min. : NA Min. : NA

[R] Error in Rose Method (class balancing)

2020-07-22 Thread Neha gupta
Hello, I get the following error when I use the ROSE class balancing method but when I use other methods like SMOTE, up, down, I do not get any error message. Something is wrong; all the ROC metric values are missing: ROC Sens Spec Min. : NA Min. : NA Min. : NA 1st Qu.: NA 1st Qu.: NA 1st Qu