similar to: Package Caret

Displaying 20 results from an estimated 2000 matches similar to: "Package Caret"

2023 Apr 14
2
Package Caret
This is the error then: error in prettyseq(1:ncol(out)) : could not find function "prettyseq" Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06: > What happens if you do the following? > > library(caret) > > ?caret::createDataPartition > > i.e. to confirm that caret is loaded, seek help on this function > > > On Fri, Apr
2023 Apr 14
1
Package Caret
Or is there any similar function to split the dataframe to trainDF and testDF? G?bor Malomsoki <gmalomsoki1980 at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:45: > > This is the error then: > error in prettyseq(1:ncol(out)) : could not find function "prettyseq" > > > > > Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06:
2023 Apr 14
1
Package Caret
What happens if you do the following? > library(caret) > ?caret::createDataPartition i.e. to confirm that caret is loaded, seek help on this function On Fri, Apr 14, 2023 at 9:56?AM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > Eric, > > Yes, i know, i am calling the package, but this is not working. > I saw a similar question in Stackoverflow, advising install
2023 Apr 14
1
Package Caret
Eric, Yes, i know, i am calling the package, but this is not working. I saw a similar question in Stackoverflow, advising install package Rcpp, but this one i am unable to install. Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 08:47: > You first have to load the package using the library command. > > library(caret) > > Then you can call
2023 Apr 16
2
Package Caret
Many thanks Bert, now is ok, i did not know that "Namensraum" should mean a package Am So., 16. Apr. 2023 um 23:44 Uhr schrieb Bert Gunter < bgunter.4567 at gmail.com>: > So update the vctrs package to the latest version first before loading > R-tools (or the caret package, specifically)? > > -- Bert > > On Sun, Apr 16, 2023 at 1:57?PM G?bor Malomsoki >
2023 Apr 14
1
Package Caret
You should post the result of running sessionInfo(), and tell us how you installed R. Your installation seems very broken. Duncan Murdoch On 14/04/2023 3:45 a.m., G?bor Malomsoki wrote: > This is the error then: > error in prettyseq(1:ncol(out)) : could not find function "prettyseq" > > > > > Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14.
2023 Apr 16
1
Package Caret
I have newly installed R, R-tools, RStudio, but still not working: library(caret)Lade n?tiges Paket: latticeError: Laden von Paket oder Namensraum f?r ?caret? in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): fehlgeschlagen Namensraum ?vctrs? 0.5.2 ist bereits geladen, aber >= 0.6.0 wird gefordert Error in createDataPartition(hypotezis_df$X, p = 0.75, list = FALSE, times
2023 Apr 16
1
Package Caret
So update the vctrs package to the latest version first before loading R-tools (or the caret package, specifically)? -- Bert On Sun, Apr 16, 2023 at 1:57?PM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > > I have newly installed R, R-tools, RStudio, but still not working: > > library(caret)Lade n?tiges Paket: latticeError: Laden von Paket oder > Namensraum f?r
2023 Apr 14
1
Package Caret
You first have to load the package using the library command. > library(caret) Then you can call createDataPartition. e.g. > data(oil) > createDataPartition(oilType,2) HTH, Eric On Fri, Apr 14, 2023 at 7:52?AM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > Dear all, > When i try to use createDataPartition after calling package 'caret', i get > the
2011 Oct 02
1
difference between createPartition and createfold functions
Hello, I'm trying to separate my dataset into 4 parts with the 4th one as the test dataset, and the other three to fit a model. I've been searching for the difference between these 2 functions in Caret package, but the most I can get is this-- A series of test/training partitions are created using createDataPartition while createResample creates one or more bootstrap samples.
2013 Mar 02
2
caret pls model statistics
Greetings, I have been exploring the use of the caret package to conduct some plsda modeling. Previously, I have come across methods that result in a R2 and Q2 for the model. Using the 'iris' data set, I wanted to see if I could accomplish this with the caret package. I use the following code: library(caret) data(iris) #needed to convert to numeric in order to do regression #I
2012 Nov 04
1
sample equal number of cases per class
Dear community I have a dataframe and want to split it into a learn and a test partition. However the learnset should be balanced, i.e. each class should have the same number of cases. I tried and searched a lot, without success so far. Maybe you can help? Some example code *# generate example data df <- data.frame(class = as.factor(sample(1:3, 20, replace = T)), var1 = rnorm(20,3), var2 =
2012 May 30
1
caret() train based on cross validation - split dataset to keep sites together?
Hello all, I have searched and have not yet identified a solution so now I am sending this message. In short, I need to split my data into training, validation, and testing subsets that keep all observations from the same sites together ? preferably as part of a cross validation procedure. Now for the longer version. And I must confess that although my R skills are improving, they are not so
2010 Sep 09
1
createDataPartition
Dear all, does anyone know how to define the structure of the required samples using function createDataPartition, meaning proportions of different types of variable in the partition? Smth like this for iris data: createDataPartition(y = c(setosa = .5, virginica = .3, versicolor = .2), times = 10, p = .7, list = FALSE) Thanks a lot for your help. Regards, Trafim [[alternative HTML version
2013 Feb 19
0
CARET. Relationship between data splitting trainControl
I have carefully read the CARET documentation at: http://caret.r-forge.r-project.org/training.html, the vignettes, and everything is quite clear (the examples on the website help a lot!), but I am still a confused about the relationship between two arguments to trainControl: "method" "index" and the interplay between trainControl and the data splitting functions in caret
2023 May 09
1
RandomForest tuning the parameters
Hi Sacha, On second thought, perhaps this is more the direction that you want ... X2 = cbind(X_train,y_train) colnames(X2)[3] = "y" regr2<-randomForest(y~x1+x2, data=X2,maxnodes=10, ntree=10) regr regr2 #Make prediction predictions= predict(regr, X_test) predictions2= predict(regr2, X_test) HTH, Eric On Tue, May 9, 2023 at 6:40?AM Eric Berger <ericjberger at gmail.com>
2018 Apr 14
2
Efficient way to subset rows in R for dataset with 10^7 columns
I have a data.table with dimensions 100 by 10^7. When I do trainIndex <- caret::createDataPartition( df$status, p = .9, list = FALSE, times = 1 ) outerTrain <- df[trainIndex] outerTest <- df[-trainIndex] Subsetting the rows of df takes over 20 minutes. What is the best way to efficiently subset this? Thanks! [[alternative
2009 Dec 21
5
Help,Suggest me some methods to identify training set and test set!!!
I want to split my whole dateset to training set and test set, building model in training set, and validate model using test set. Now, How can I split my dataset to them reasonally. Please give me a hand, It is better to give me some R code. and I see some ways like using SOM to project whole independents to 2-dimensions and find some to be training set and others are test set. like below. I
2010 Nov 23
5
cross validation using e1071:SVM
Hi everyone I am trying to do cross validation (10 fold CV) by using e1071:svm method. I know that there is an option (?cross?) for cross validation but still I wanted to make a function to Generate cross-validation indices using pls: cvsegments method. ##################################################################### Code (at the end) Is working fine but sometime caret:confusionMatrix
2009 Oct 28
1
Data Partition Package
Hi, Users, I am a new user. I am trying to partition data into training and test. Is there any R package or function that can partition dataset? Also, is there any package do crossvalidation? Any help will be appreciated. Best, Pat [[alternative HTML version deleted]]