Re: [R] script execution stops and give the error

2019-12-21 Thread Neha gupta
My data is as follows: d=readARFF("ant.arff") dput( head( d, 50 ) ) d-> structure(list(version = c(1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7, 1.7,

Re: [R] script execution stops and give the error

2019-12-20 Thread Jeff Newmiller
We don't have your data file. Therefore your example is not yet reproducible. If you read the references I provided you in my other email then you will find hints and discussion about how to make your example reproducible without giving out your actual data. The reprex package mentioned in

Re: [R] script execution stops and give the error

2019-12-20 Thread Neha gupta
This is the whole code I provided except the libraries such as library(caret) library(randomForest) data=read.csv("fault.csv") inTraining <- createDataPartition(data$bug , p = .75,list = FALSE) training <- data [inTraining, ] testings <- data [-inTraining, ] ctrol = trainControl(method =

Re: [R] script execution stops and give the error

2019-12-20 Thread Jeff Newmiller
A) Plain text is a setting that you must choose in many modern email clients. Failing to do so tends to cause us to see something more or less different than what you intended us to see. B) Repeating your incomplete example is a more significant issue in this case. If you supply a reproducible

Re: [R] script execution stops and give the error

2019-12-20 Thread Neha gupta
The code is described below: I need to find the RMSE and MAE ///read data which have data types of integer and number. data=read.csv("fault.csv") inTraining <- createDataPartition(data$bug , p = .75,list = FALSE) training <- data [inTraining, ] testings <- data [-inTraining, ] ctrol =

Re: [R] script execution stops and give the error

2019-12-20 Thread Patrick (Malone Quantitative)
Per the posting guide, post your script and use plain text. There's no way anyone can possibly help with only this information. On Fri, Dec 20, 2019 at 5:33 PM Neha gupta wrote: > > When I run my code, I get the following error and suddenly the execution > of the script stops. Where in my data

[R] script execution stops and give the error

2019-12-20 Thread Neha gupta
When I run my code, I get the following error and suddenly the execution of the script stops. Where in my data is the problem? Something is wrong; all the MAE metric values are missing: RMSERsquaredMAE Min. : NA Min. : NA Min. : NA 1st Qu.: NA 1st Qu.: NA