Displaying 20 results from an estimated 1200 matches similar to: "sample equal number of cases per class"
2012 Jul 10
5
-1.1 - 0.1 + 1.2 is NOT null! Why?
Hello,
I fear its a stupid question,..but here it is:
If I do this simple calculation with the R console, I surprisingly do not
get a zero. Why?
-1.1-0.1+1.2
[1] -2.220446e-16
greetings, Ole
--
View this message in context: http://r.789695.n4.nabble.com/1-1-0-1-1-2-is-NOT-null-Why-tp4636053.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version
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 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 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 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 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 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 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
2023 Apr 14
1
Package Caret
Dear all,
When i try to use createDataPartition after calling package 'caret', i get
the message:
"could not find function createDataPartition"
I use:
R-4.2.3 for Windows
RStudio-2023.03.0-386
Do you have any experience with this failure?
Thank you!
Best regards
Gabor
[[alternative HTML version deleted]]
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.
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 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
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
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 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]]
2009 May 15
3
Using sample to create Training and Test sets
Forgive the newbie question, I want to select random rows from my
data.frame to create a test set (which I can do) but then I want to
create a training set using whats left over.
Example code:
acc <- read.table("accOUT.txt", header=T, sep = ",", row.names=1)
#select 400 random rows in data
training <- acc[sample(1:nrow(acc), 400, replace=TRUE),]
#try to get whats left
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