Re: [R] Gap between plots, how to reduce

2022-09-12 Thread Neha gupta
e this helps, > > Rui Barradas > > Às 05:58 de 13/09/2022, Neha gupta escreveu: > > Hi > > > > There is a gap between plots (white spaces) when I draw the boxplot. I > want > > to reduce the spaces between the plots so that the boxplot takes a small > >

[R] Gap between plots, how to reduce

2022-09-12 Thread Neha gupta
Hi There is a gap between plots (white spaces) when I draw the boxplot. I want to reduce the spaces between the plots so that the boxplot takes a small space. When I just adjust "boxwex" values, the length of individual plots increases/decreases but the white spaces is still there. My code: RF=

[R] How to use AUC metric in caret

2022-09-05 Thread Neha gupta
Hello everyone I am using nested resampling in caret (5-fold outer and bootstrap inner resampling) and by default, it shows the "Accuracy" metric. How can I use it for the ROC/AUC metric? My code is: d=readARFF("apns.arff") index <- createDataPartition(d$isKilled , p = .70,list = FALSE) tr <-

Re: [R] How to reduce the (whitespace) gap between boxplots

2022-07-17 Thread Neha gupta
T"),main="Degree of > consistency > with default and optimized settings") > > Modify to your taste. > > Cheers, > Bert > > On Sun, Jul 17, 2022 at 12:06 PM Neha gupta > wrote: > > > > Hi > > > > I have the following code to dis

Re: [R] Ranger could not work with caret

2022-07-01 Thread Neha gupta
218.9856 0.9141754 152.2099 > #24extratrees 7 222.8540 0.9412682 152.4614 > #24extratrees 8 228.1156 0.9423414 161.8456 > #24extratrees 9 226.6182 0.9408306 160.5264 > #24extratrees 10 226.92

[R] Ranger could not work with caret

2022-06-30 Thread Neha gupta
I posted it for the second time as I didn't get any response from group members. I am not sure if some problem is with the question. I cannot run the "ranger" model with caret. I am only using the farff and caret libraries and the following code: boot <- trainControl(method = "cv", number=10)

Re: [R] Rstudio cannot be loaded

2022-06-19 Thread Neha gupta
Okay, thank you. I will do that. Best regards On Sunday, June 19, 2022, Rui Barradas wrote: > Hello, > > No, do not delete RStudio, just donwload and install the most up-to-date > version. > > Hope this helps, > > Rui Barradas > > Às 16:27 de 19/06/2022, Neha

Re: [R] Rstudio cannot be loaded

2022-06-19 Thread Neha gupta
; On Sun, Jun 19, 2022 at 7:54 AM Neha gupta > wrote: > >> Recently I updated R and now when I try to open R studio, I get >> >> The R session failed to start. >> >> ERROR MESSAGE >> [No error available] >> PROCESS OUTPUT >> The R sess

[R] Rstudio cannot be loaded

2022-06-19 Thread Neha gupta
Recently I updated R and now when I try to open R studio, I get The R session failed to start. ERROR MESSAGE [No error available] PROCESS OUTPUT The R session process exited with code -1073740791. ERRORS [No errors emitted] OUTPUT [No output emitted] 22 Nov 2020 18:35:26 [rsession-] ERROR

Re: [R] How to color boxplots with respect to the variable names

2022-05-29 Thread Neha gupta
, range = 0, col=colors, names= c("RF", > "RF_LOO", "RF_boot", > "Ranger", "Ranger_LOO", "Ranger_boot", "SVM", "SVM_LOO", > "SVM_boot", > "KNN", "KNN_LOO",

[R] How to color boxplots with respect to the variable names

2022-05-29 Thread Neha gupta
I have the following data and I need to use a boxplot which displays the variables (RF, Ranger, SVM, KNN) with one color, variables (RF_boot, Ranger_boot, SVM_boot, KNN_boot) with another color and the variables (RF_LOO, SVM_LOO, Ranger_LOO, KNN_LOO) with another color. How can I do that?

Re: [R] How to show a specific value of a ggplot2

2022-05-27 Thread Neha gupta
ting function, then it should be > as simple as > > > newdata75 <- data.frame(x = 75) > y75 <- predict(fit, newdata = newdata75) > > > or something similar. > > I have never used this package so I might be completely wrong. > > Hope this helps, > > Rui Barradas &

Re: [R] missing values error in if statement

2022-05-20 Thread Neha gupta
uot;prob") > #> Error: Element with key 'classif.randomForest' not found in > DictionaryLearner! > > Rui Barradas > > Às 14:12 de 20/05/2022, Neha gupta escreveu: > >> When I run >> >> print(fc) >> >> it shows 'Inf'. It mean it doesn't calculat

Re: [R] missing values error in if statement

2022-05-20 Thread Neha gupta
questions. > > > ifelse(test$CE == '2', 1, 0) > > > is equivalent to the much more performant > > > as.integer(test$CE == '2') # or as.numeric > > > If the code still runs with errors, then those errors came from elsewhere. > > Hope this helps, > > Rui Barradas

[R] missing values error in if statement

2022-05-19 Thread Neha gupta
Why do I get the following error when my variable in the 'if statement' has no missing values. I check with is.na(my variable) and it has no missing values Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed Best regards [[alternative HTML version deleted]]

Re: [R] Error with text analysis data

2022-04-13 Thread Neha gupta
15 142 2 DESCRIPTION_FORMATTYPE 2 3 On Thu, Apr 14, 2022 at 2:30 AM David Winsemius wrote: > > On 4/13/22 16:58, Neha gupta wrote: > > summary(d) > >

Re: [R] How important is set.seed

2022-03-22 Thread Neha gupta
On Behalf Of Jeff Newmiller > Sent: Monday, March 21, 2022 8:41 PM > To: r-help@r-project.org; Neha gupta ; r-help > mailing list > Subject: Re: [R] How important is set.seed > > [External Email] > > First off, "ML models" do not all use random numbers (for pr

[R] How important is set.seed

2022-03-21 Thread Neha gupta
Hello everyone I want to know (1) In which cases, we need to use set.seed while building ML models? (2) Which is the exact location we need to put the set.seed function i.e. when we split data into train/test sets, or just before we train a model? Thank you [[alternative HTML version

Re: [R] How to perform statistical test with multiple variables

2022-02-28 Thread Neha gupta
> actually testing. Maybe that phrase will help you in _your_ search for > the answer. > > Jim > > On Tue, Mar 1, 2022 at 8:56 AM Neha gupta > wrote: > > > > Hello everyone, > > > > I have 'mean absolute error' values from different folds of CV of 6

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
4 5 7 ## bug count > 162 40 9 7 2 1 1 ## nmbr of cases with the given count > > You or others may disagree, of course. > > Bert Gunter > > > > On Thu, Feb 17, 2022 at 11:56 AM Neha gupta > wrote: > > > > Ebert and Rui, thank you fo

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
gt; > > > This can be copied into an R session and the data set recreated with > > data <- structure(etc) > > > Now the boxplots. > > (Why would you want to plot a vector of all zeros, btw?) > > > > library(dplyr) > > boxplot(filter(data, bug == 0

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
2-02-17 1:54 p.m., Neha gupta wrote: > > Hello everyone > > > > I have a dataset with output variable "bug" having the following values > (at > > the bottom of this email). My advisor asked me to provide data > distribution > > of bugs with 0 values an

Re: [R] Problem with data distribution

2022-02-17 Thread Neha gupta
- > From: R-help On Behalf Of Neha gupta > Sent: Thursday, February 17, 2022 1:55 PM > To: r-help mailing list > Subject: [R] Problem with data distribution > > [External Email] > > Hello everyone > > I have a dataset with output variable "bug" having t

Re: [R] NAs are removed

2022-01-14 Thread Neha gupta
ch returns NaN. So 1/0 <= 1 returns FALSE and 0/0 <= 1 returns NA. A > great deal of the behavior of your program hinges on what "fraction" is in > your program. > > Tim > > -Original Message- > From: R-help On Behalf Of Neha gupta > Sent: Friday, Jan

Re: [R] NAs are removed

2022-01-14 Thread Neha gupta
PM Jim Lemon wrote: >> >> > Hi Neha, >> > You're using the argument "na.omit" in what function? My blind guess >> > is that there's a divide by zero shooting you from behind. >> > >> > Jim >> > >> > On Sat, Jan 15

Re: [R] NAs are removed

2022-01-14 Thread Neha gupta
at there's a divide by zero shooting you from behind. > > Jim > > On Sat, Jan 15, 2022 at 6:32 AM Neha gupta > wrote: > > > > Hi everyone > > > > I use na.omit to remove NAs but still it gives me error > > > > Error in if (fraction <= 1) { : mis

[R] NAs are removed

2022-01-14 Thread Neha gupta
Hi everyone I use na.omit to remove NAs but still it gives me error Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed My data is: data.frame': 340 obs. of 15 variables: $ DepthTree: num 1 1 1 1 1 1 1 1 1 1 ... $ NumSubclass : num 0 0 0 0 0 0 0 0 0 0 ... $ McCabe

Re: [R] How to ignore outliers in a boxplot

2021-08-04 Thread Neha gupta
oxplot. > > Hope this helps, > > Rui Barradas > > Às 14:51 de 04/08/21, Neha gupta escreveu: > > Hi > > > > I have values like: > > > > var= c(0, 0, 0,0, 0, 14, 0, 14, 0, 2, 3) > > > > I want to show these values in a boxplot > > &g

[R] How to ignore outliers in a boxplot

2021-08-04 Thread Neha gupta
Hi I have values like: var= c(0, 0, 0,0, 0, 14, 0, 14, 0, 2, 3) I want to show these values in a boxplot boxplot (var) However, the boxplot shows only the zero values and the value till 14 are shown as outliers.. I want to show all my values as boxplot, can I do that? If I use outline=F, it

Re: [R] How to select rows, not in sequence

2021-07-24 Thread Neha gupta
Thanks a lot Sir, indeed it resolved my issue. Warm regards On Sat, Jul 24, 2021 at 1:51 PM Rui Barradas wrote: > Hello, > > Simply by also passing a vector to the extraction function: > > > rows= df[c(1,2,5,7,12) , ] > > > Hope this helps, > > Rui Barradas >

[R] How to select rows, not in sequence

2021-07-24 Thread Neha gupta
Hi If I have to select specific rows and all columns of a dataframe, I use: rows= df[1:12 , ] However, how to select rows if our required rows are not in sequence i.e. if we need to select row numbers 1,2,5,7, and 12.. Warm regards [[alternative HTML version deleted]]

[R] Error in identifying correlated metrics

2021-05-20 Thread Neha gupta
Hello everyone While I am working to identify the correlated metrics on my data, I am getting the following error? My data has no missing or Inf values as all other operations (model training etc) could be done without any errors. Error in hclust(as.dist(1 - abs(cor(data, method = cor_method))),

Re: [R] Installed Packages not working

2021-04-17 Thread Neha gupta
Thank you all.. I installed vctrs and install_dependencies and now its working Regards On Sat, Apr 17, 2021 at 9:52 PM Neha gupta wrote: > Thank you. I have installed "rlang" but now giving error message below: > > Error: package or namespace load failed for ‘farff’ in l

Re: [R] Installed Packages not working

2021-04-17 Thread Neha gupta
21 at 9:35 PM Rui Barradas wrote: > Hello, > > That error message means you need to run > > install.packages("rlang") > > before running > > library(farff) > > > Hope this helps, > > Rui Barradas > > Às 20:02 de 17/04/21, Neha gupta escre

[R] Installed Packages not working

2021-04-17 Thread Neha gupta
Hi, suddenly the packages I installed not working. It gives me the error: Error: package or namespace load failed for ‘farff’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.4.7 is already loaded, but >= 0.4.10 is required [[alternative HTML

[R] Different files for train and test data

2021-02-04 Thread Neha gupta
Hi I have two files of my data: part1 and part2. I used part1 to train and test my data and got the RMSE value. Now I need to compare my obtained result (RMSE value) with unseen data i.e. part2 of data. How can I use the same training data of part1 and part2 data as test data. I am using caret

[R] Dalex function in mlr3

2021-02-02 Thread Neha gupta
Hi to everyone I just wanted to know if the dalex package of the mlr3 provides the same functions (i.e. variable importance) as provided by the scott-knott-esd test? Warm regards [[alternative HTML version deleted]] __ R-help@r-project.org

[R] How can we get median MAE in caret

2021-01-17 Thread Neha gupta
Hi, If I am using caret and MAE metric, how can we get median of MAE in easy manner. cart <-train(Result ~ ., data = tr, method = "rf", metric = "MAE", preProc = c("center", "scale", "nzv"), trControl = ctr) [[alternative HTML version deleted]]

[R] How to get Mean Magnitude of Relative Error with caret library

2021-01-10 Thread Neha gupta
Hi, I am using caret package and using nested resampling method (i.e. 5 fold for outer fold). I am getting the RMSE and MAE values, which are default to the caret library. My question is how can we implement the Mean Magnitude of Relative Error (MRE and MMRE) with caret. My code is the following:

[R] error in parameters tuning of svm

2021-01-02 Thread Neha gupta
Hello everyone I m using the parameters optimization of svm in mlr3. I am setting the parameters of 'C' and 'type'. search_space = paradox::ParamSet$new( params = list(paradox::ParamInt$new("C", lower = 1, upper = 7), paradox::ParamFct$new(id = "type", default = "eps-svr", levels =

[R] error: data set is too small or the subsampling rate is too large

2020-12-30 Thread Neha gupta
Hi, I am using the hyperparameters tuning of GBM but it gives me the following error: (For some other datasets, my code works, so the problem would be the dataset size I guess). Error in gbm.fit(x = x, y = y, offset = offset, distribution = distribution, : The data set is too small or the

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
' is not set at all. Try setting 'type' to a value that satisfies the condition. I have set the parameter values as following: search_space = paradox::ParamSet$new( params = list(paradox::ParamInt$new("C", lower = 1, upper = 7))) On Tue, Dec 29, 2020 at 6:36 PM Neha gupta wrote:

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
ast 1, so searching > below 1 is probably your issue. > > Also, logically, zero nearest neighbors doesn't seem to make a lot of > sense. > > Pat > > On Tue, Dec 29, 2020 at 11:01 AM Neha gupta > wrote: > >> Thank you for your response. >> >> Are yo

Re: [R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
Thank you for your response. Are you certain that k = 0 is a legitimate setting? Since, the default value of k is 1, I wanted to search between the values of 0 to 3. Milne, Do you mean I have to provide both the lower and upper bounds greater than 1 in order to get rid of this error? On Tue,

[R] Fwd: Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
I am using mlr3 'fast nearest neighbor' leaner i.e. fnn Its parameter is 'k' which has a default value of 1. When I use tuning using random search, I set the parameter of k as: lower= 0, upper=3 But it gives an error message Error in self$assert(xs) : Assertion on 'xs' failed: k: Element 1 is

[R] Error in setting the parameter values of k

2020-12-29 Thread Neha gupta
I am using nlr3 'fast nearest neighbor' leaner i.e. fnn Its parameter is km which has a default value of 1. When I use tuning using random search, I set the parameter of k as: lower= 0, upper=3 But it gives an error message Error in self$assert(xs) : Assertion on 'xs' failed: k: Element 1 is

[R] How to evaluate a learner with multiple resampling in mlr3?

2020-12-25 Thread Neha gupta
Hello everyone, I want to evaluate the cart learner with different (i.e. ideally 10 different) resampling methods. My questions are: (1) How should I specify the list of resampling methods? (2) Should I specify the resampling lists in the beginning or in the benchmark? (3) Currently mlr3 shows

[R] Problem with mlr3 parameters optimization

2020-12-22 Thread Neha gupta
Hello everyone, I performed a parameters optimization in mlr3 and then pass it to the benchmark to compare the optimized and a baseline learner, but it give an error message and does not recognize the optimized (i.e. at) learner. df=readARFF("nasa93.arff") task=TaskRegr$new("df", df, target =

Re: [R] scott-knot ESD effect size test

2020-12-02 Thread Neha gupta
icated exclusively to this test. > It is called ScottKnotESD rather unoriginally. > > Michael. > > On 02/12/2020 10:32, Neha gupta wrote: > > I have the following data from resample > > > > svm= svm$resample$RMSE > > nn= nn$resample$RMSE > > > > we p

[R] scott-knot ESD effect size test

2020-12-02 Thread Neha gupta
I have the following data from resample svm= svm$resample$RMSE nn= nn$resample$RMSE we perform the statistical tests like wilcox.test(svm, nn) I have a question, can we perform the scott-knot ESD test here? if yes, how? [[alternative HTML version deleted]]

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(&qu

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

2020-07-24 Thread Neha gupta
pling = "rose") set.seed(30218) ct <- train(`Bug class` ~ ., data = tr, method = "pls", metric = "AUC", preProc = c("center", "scale", "nzv"), trControl = boot3) getTrainPerf(ct) On Thu, Jul 23, 2020 at 11:50 PM Jeff Newmiller wrote:

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

2020-07-23 Thread Neha gupta
, 2020 at 10:47 PM David Winsemius wrote: > > 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) &g

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

2020-07-23 Thread Neha gupta
?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Thu, Jul 23, 2020 at 4:01 PM Neha gupta

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

2020-07-23 Thread Neha gupta
c("center", "scale", "nzv"), trControl = boot3) getTrainPerf(ct) On Thu, Jul 23, 2020 at 1:08 AM David Winsemius wrote: > > On 7/22/20 3:43 PM, Neha gupta wrote: > > Hello, > > > > > > I get the following error when I

[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

Re: [R] ggplot to visualize data

2020-06-08 Thread Neha gupta
keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Mon, Jun 8, 2020 at 8:38 AM Neha gupta > wrote: > >> I have a model NN, which has 10 piece of data in 10 folds of test (ts) >&

[R] ggplot to visualize data

2020-06-08 Thread Neha gupta
I have a model NN, which has 10 piece of data in 10 folds of test (ts) data such as 0.1, 0.5, 0.3 etc. And another model SVM, which also have this type of information. I usually visualize it like: boxplot (NN, SVM) I have two questions? (1) I want to ask how can I visualize them via ggplot?

Re: [R] Error: all the ROC metric values are missing:

2020-04-15 Thread Neha gupta
ot;data.frame") > On Wed, Apr 15, 2020 at 11:55 PM Jeff Newmiller wrote: > Someday, Neha, you will learn to post a reproducible example using plain > text. I hope. > > Try using the reprex package. > > On April 15, 2020 2:32:03 PM PDT, Neha gupta > wrote: >

[R] Error: all the ROC metric values are missing:

2020-04-15 Thread Neha gupta
What is the problem is the code.. d=readARFF("CM1.arff") index <- createDataPartition(d$Defective, p = .70,list = FALSE) tr <- d[index, ] ts <- d[-index, ] index_2 <- createFolds(tr$Defective, returnTrain = TRUE, list = TRUE) ctrl <- trainControl(method = "boot", number=100, index = index_2,

[R] About bootstrap validation method

2020-04-12 Thread Neha gupta
If we have to perform 100 iterations of the out-of-sample bootstrap, do we need to just enter the number 100 as: trainControl (method="boot", number = 100) Regards [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --

[R] correlated metrics using AutoSpearman

2020-04-06 Thread Neha gupta
Hello I am using feature selection using AutoSpearman but I have no idea what to do after the 'plotVarClus' function, which is just a graph and red bars are going out of the input metrics. My question is what is the next step to perform the feature selection (exclude correlated metrics). I used

[R] Statistical tests on model trained on different datasets

2020-03-19 Thread Neha gupta
Hi If I have one dataset , then we can perform statistical tests as: d=read.csv("dataset1) svm <- train(bug ~ ., data = tr, -- --- getTrainPerf(svm) rf <- train(bug ~ ., data = tr, -- --- getTrainPerf(rf) wilcox.test(svm$resamples$RMSE, rf$resamplesRMSE) But if we

Re: [R] How to make our data normally distributed in R

2020-03-13 Thread Neha gupta
an convert RMSE to > VEcv using tovecv in spm. > Hope this helps, > Jin > > On Fri, Mar 13, 2020 at 8:08 AM Neha gupta > wrote: > >> Hi >> >> I have a regression based data where I get the RMSE results as: >> >> SVM=3500 >> ANN=4600 >&

Re: [R] How to make our data normally distributed in R

2020-03-12 Thread Neha gupta
> > See base R function ?scale for another way of scaling data. > > As for the second question, if your RMSE vector had values in the range > 2900 to 4600 and the y axis limits are c(0, 1), how can you expect to > see anything? > > Hope this helps, > > Rui Barradas > &g

[R] How to make our data normally distributed in R

2020-03-12 Thread Neha gupta
Hi I have a regression based data where I get the RMSE results as: SVM=3500 ANN=4600 R.Forest=2900 I want to know how can I make it so that its values comes as 0-1 I plot the boxplot for it to indicate their RMSE values and used, ylim=(0,1), but the boxplot which works for RMSE values like

Re: [R] caption needed for boxplot

2020-03-05 Thread Neha gupta
ot;ab","cd","ef","gh","lm","pq","xy","yz") ) > > Jim > > On Fri, Mar 6, 2020 at 7:07 AM Neha gupta > wrote: > > > > Hi > > I have a boxplot using the following code and I get the boxplots, but

[R] caption needed for boxplot

2020-03-05 Thread Neha gupta
Hi I have a boxplot using the following code and I get the boxplots, but at the x axis, instead of 1,2,3, how can I get my own captions like , random, grid, genetic, pso etc. a=ran_CV$results$MAE aa=grid_CV$results$MAE b=ran_boot$results$MAE bb=grid_boot$results$MAE c=ran_locv$results$MAE

[R] How to perform test for significance difference?

2019-12-29 Thread Neha gupta
Hello to all. I have a small confusion, kindly if you could suggest something? I need to compare two algorithms, CART and NNET in R. The results show that NNET has better MAE value, but I want to find if there is any significance difference between the results of both algorithms? The dataset I

Re: [R] Statistical tests on residuals

2019-12-29 Thread Neha gupta
) runs without errors? > > Hope this helps, > > Rui Barradas > > Às 16:55 de 29/12/19, Neha gupta escreveu: > > Hello Rui, > > > > I use caret and CART > > > > search <- train(Results ~ ., data = training, > >

[R] Statistical tests on residuals

2019-12-29 Thread Neha gupta
Hi I have continuous data I.e regression based. If I have residuals for algorithm 1 and algorithm 2 like this, X=resid(alg1) and y=resid (alg2) Can we perform the Wilcoxon test as. Wilcox.test(x,y) Thanks [[alternative HTML version deleted]]

[R] Something is wrong; all the MAE metric values are missing

2019-12-25 Thread Neha gupta
Hi I am using Simulated annealing to tune the parameters of xgbtree for regression dataset. When I run the code to tune the parameters of SVM and RF, it works but when I run the same code for xgbTree, it gives stops and give error: Something is wrong; all the MAE metric values are missing:

Re: [R] all the MAE metric values are missing (Error message)

2019-12-23 Thread Neha gupta
hy you are getting NAs: > > log10(0) > [1] -Inf > > Another possibility is that the values used in the initial calculation > have been read in as factors. > > Jim > > On Mon, Dec 23, 2019 at 10:55 AM Neha gupta > wrote: > > > > Hi Jim > > > > Th

Re: [R] all the MAE metric values are missing (Error message)

2019-12-22 Thread Neha gupta
ck the object that you are passing to san_res. > > Jim > > On Mon, Dec 23, 2019 at 4:17 AM Neha gupta > wrote: > > > > I am using the following code to tune the 4 parameters of Gradient > Boosting > > algorithm using Simulated annealing (optim). When I run the program, &

[R] all the MAE metric values are missing (Error message)

2019-12-22 Thread Neha gupta
I am using the following code to tune the 4 parameters of Gradient Boosting algorithm using Simulated annealing (optim). When I run the program, after few seconds it stops and displays the following error: I point out here that the same code works for RF ( mtry parameter) and SVM (cost and sigma

[R] how to initialize values of mtry for R.Forest

2019-12-21 Thread Neha gupta
Hi, I am using Simulated Annealing to tune the parameters of the R.Forest. The code I use is below: My question is that did I do correctly when I used the values 1:24 in the optim function of the Simulated annealing? I used 1:24 because my number of features in the dataset are 24, and the mtry

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

2019-12-21 Thread Neha gupta
gt; [1] > http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example > > [2] http://adv-r.had.co.nz/Reproducibility.html > > [3] https://cran.r-project.org/web/packages/reprex/index.html (read the > vignette) > > On December 20, 2019 3:23:14 PM P

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

2019-12-20 Thread Neha gupta
;zv"), trControl = ctrol) On Sat, Dec 21, 2019 at 12:23 AM Neha gupta wrote: > > 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") > >

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

2019-12-20 Thread Neha gupta
scale", "zv"), trControl = ctrol) On Fri, Dec 20, 2019 at 11:31 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 is the problem? > > Something is wrong; all t

[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

[R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread Neha gupta
Hi , I know nobody will respond to my query as I asked few in the past and no answer received for any of my questions. However, I am asking here with the hope it will get responded. I am using bayesian optimization to tune the parameter of mtry for random forest but it gives me the error: Error

[R] Hyperparameter tuning

2019-11-26 Thread Neha gupta
I am using xgboost hyperparameter tuning for the value of rmse. I used the following method which returns two values ; mean which is like - 1200.12 and Best value like - 960. I guess the first value is average value and the second is the best rmse value returned by the algorithm. Now if we have

[R] Adaptive resampling in r

2019-11-16 Thread Neha gupta
How the hyperparameter settings via adaptive resampling is different from the one obtained from grid search or random search? Both grid and random searches provide best parameters values and the same is achieved using adaptive resampling. [[alternative HTML version deleted]]

[R] Train and testing in caret package

2019-11-04 Thread Neha gupta
Hello to all. I am new to R language, just read few tutorials. I have a question, we use trainControl and train function for k fold cross validation and we don't need to predict the data separately using predict function for test data. But how when we have a separate test set? How can we use the