Displaying 20 results from an estimated 3000 matches similar to: "nearZeroVar in caret fails"
2009 Jun 30
2
NaiveBayes fails with one input variable (caret and klarR packages)
Hello,
We have a system which creates thousands of regression/classification models and in cases where we have only one input variable NaiveBayes throws an error. Maybe I am mistaken and I shouldn't expect to have a model with only one input variable.
We use R version 2.6.0 (2007-10-03). We use caret (v4.1.19), but have tested similar code with klaR (v.0.5.8), because caret relies on
2010 May 17
0
version 4.39 of the caret package
Version 4.39 of the caret package was sent to CRAN.
caret can be used to tune the parameters of predictive models using
resampling, estimate variable importance and visualize the results.
There are also various modeling and "helper" functions that can be
useful for training models. caret has wrappers to over 75 different
models for classification and regression. See the package
2010 May 17
0
version 4.39 of the caret package
Version 4.39 of the caret package was sent to CRAN.
caret can be used to tune the parameters of predictive models using
resampling, estimate variable importance and visualize the results.
There are also various modeling and "helper" functions that can be
useful for training models. caret has wrappers to over 75 different
models for classification and regression. See the package
2013 Feb 13
2
CARET: Any way to access other tuning parameters?
The documentation for caret::train shows a list of parameters that one can
tune for each method classification/regression method. For example, for
the method randomForest one can tune mtry in the call to train. But the
function call to train random forests in the original package has many
other parameters, e.g. sampsize, maxnodes, etc.
Is there **any** way to access these parameters using train
2012 Dec 12
2
Problem installing package "caret"
Folks:
I keep getting the following error message (I'm on Windows 7, R-2.15.2, and
tried a reboot...). Thx!
John
> install.packages("caret")Installing package(s) into ‘C:/Program Files/R/R-2.15.2/library’
(as ‘lib’ is unspecified)trying URL
'http://streaming.stat.iastate.edu/CRAN/bin/windows/contrib/2.15/caret_5.15-045.zip'Content
type 'application/zip' length
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
2012 Apr 13
1
caret package: custom summary function in trainControl doesn't work with oob?
Hi all,
I've been using a custom summary function to optimise regression model
methods using the caret package. This has worked smoothly. I've been using
the default bootstrapping resampling method. For bagging models
(specifically randomForest in this case) caret can, in theory, uses the
out-of-bag (oob) error estimate from the model instead of resampling, which
(in theory) is largely
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
2011 Mar 07
2
use "caret" to rank predictors by random forest model
Hi,
I'm using package "caret" to rank predictors using random forest model and draw predictors importance plot. I used below commands:
rf.fit<-randomForest(x,y,ntree=500,importance=TRUE)
## "x" is matrix whose columns are predictors, "y" is a binary resonse vector
## Then I got the ranked predictors by ranking
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:
2010 Sep 09
1
Emacs function argument hints
Hi
I've recently started using Emacs as my text editor for writing R script.
I am looking for a feature which I have seen on the standard R text editor
for Mac OS. In the Mac OS editor when you start typing a function, the
possible arguments for that function appear at the bottom of the window.
E.g. if you type "table( " before you finish typing you can see at the
bottom of the
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
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
2012 Feb 10
1
Choosing glmnet lambda values via caret
Usually when using raw glmnet I let the implementation choose the
lambdas. However when training via caret::train the lambda values are
predetermined. Is there any way to have caret defer the lambda
choices to caret::train and thus choose the optimal lambda
dynamically?
--
Yang Zhang
http://yz.mit.edu/
2011 May 01
1
caret - prevent resampling when no parameters to find
I want to use caret to build a model with an algorithm that actually has no
parameters to find.
How do I stop it from repeatedly building the same model 25 times?
library(caret)
data(mdrr)
LOGISTIC_model <- train(mdrrDescr,mdrrClass
,method='glm'
,family=binomial(link="logit")
)
LOGISTIC_model
528
2009 Oct 01
1
caret package for time series applications
Hello, I have some time series applications, where i have a large set of
X variables (hundreds) and thousands of time data points (sampling every
minute).
I like to use the caret package to support the analysis, variable
selection and model selection. However, reading the documentation, it
looks like caret uses resampling methods. Not sure if these methods
work with time series, as you
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
>
2012 Sep 14
2
when to use "I", "as is" caret
Dear community,
I've check it while working, but just to reassure myself. Let's say we have
2 models:
model1 <- lm(vdep ~ log(v1) + v2 + v3 + I(v4^2) , data = mydata)
model2 <- lm(vdep ~ log(v1) + v2 + v3 + v4^2, data = mydata)
So in model1 you really square v4; and in model2, v4*^2 *doesn't do
anything, does it? Model2 could be rewritten:
model2b <- lm(vdep ~