Displaying 20 results from an estimated 500 matches similar to: "LOOCV using R"
2013 Mar 23
1
LOOCV over SVM,KNN
Good afternoon.
I would like to know if there is any function in R to do LOOCV with these
classifiers:
1)SVM
2)Neural Networks
3)C4.5 ( J48)
4)KNN
Thanks a lot!
[[alternative HTML version deleted]]
2012 May 15
1
caret: Error when using rpart and CV != LOOCV
Hy,
I got the following problem when trying to build a rpart model and using
everything but LOOCV. Originally, I wanted to used k-fold partitioning,
but every partitioning except LOOCV throws the following warning:
----
Warning message: In nominalTrainWorkflow(dat = trainData, info =
trainInfo, method = method, : There were missing values in resampled
performance measures.
-----
Below are some
2013 Oct 18
0
Logistic regression over LOOCV
Hello all.
I have this code:
myLOOCV <- function(myformula, data) {
Y <- all.vars(myformula)[1]
Scores<- numeric(length(data[,1]))
for (i in 1:length(data[,1])) {
train <- data[-i,]
test <- data[i,]
myModel <- lrm(myformula, train)
Scores[i] <- predict(myModel, test,type="mean")
}
2008 Feb 27
7
Cross Validation
Hello,
How can I do a cross validation in R?
Thank You!
2011 Jun 09
2
Problem with a if statement inside a function
I have a really long functions, and at the end of the function, I am using a
if statement
to tag certain keywords based on whether they have certain values contained
in them.
However, the if statement doesn't seem to work.
When I had split up the commands into various functions, it worked fine, but
I'm not sure
what going on now that it's combined into a single function.
myfunc
2005 Jan 06
1
different result from the same errorest() in library( ipred)
Dear all,
Does anybody can explain this: different results got when all the same parameters are used in the errorest() in library ipred, as the following?
errorest(Species ~ ., data=iris, model=randomForest, estimator = "cv", est.para=control.errorest(k=3), mtry=2)$err
[1] 0.03333333
> errorest(Species ~ ., data=iris, model=randomForest, estimator = "cv",
2005 Jun 23
1
errorest
Hi,
I am using errorest function from ipred package.
I am hoping to perform "bootstrap 0.632+" and "bootstrap leave one out".
According to the manual page for errorest, i use the following command:
ce632[i]<-errorest(ytrain ~., data=mydata, model=lda,
estimator=c("boot","632plus"), predict=mypredict.lda)$error
It didn't work. I then tried the
2010 Sep 28
1
Re: pulseaudio under ubuntu lucid
Update on this topic.
I have just bought a new computer (My previous one was 8 years old and showing its age) and I tried timidity instead of fluidsynth.
Midi playback works fine on both the midi player and notation processor in Wine with Pulse Audio enabled.
2009 Mar 28
2
FEAR 2 : Project Origin
Hello everybody
I create this post because I can play at FEAR2 : Project Origin in my Ubuntu 8.10.
The game is very fluid and I'm in the Intervalle 4 and I don't have a graphic bug and sound problem.
But, with the sound card : HDA Intel (my old soundcard), the game crash in the cinematic game.
My PC :
Processor : Intel Core2Duo E8400
Motherboard : Asus P5Q
Memory : 4Go de ram
Graphic
2004 Jan 09
3
ipred and lda
Dear all,
can anybody help me with the program below? The function predict.lda
seems to be defined but cannot be used by errortest.
The R version is 1.7.1
Thanks in advance,
Stefan
----------------
library("MASS");
library("ipred");
data(iris3);
tr <- sample(1:50, 25);
train <- rbind(iris3[tr,,1], iris3[tr,,2], iris3[tr,,3]);
test <- rbind(iris3[-tr,,1],
2009 Apr 25
1
Overlapping parameters "k" in different functions in "ipred"
Dear List,
I have a question regarding "ipred" package. Under 10-fold cv, for different knn ( = 1,3,...25), I am getting same misclassification errors:
#############################################
library(ipred)
data(iris)
cv.k = 10 ## 10-fold cross-validation
bwpredict.knn <- function(object, newdata) predict.ipredknn(object, newdata, type="class")
for (i in
2002 Oct 09
1
ERROR: buffer overflow in receive_file_entry
has anyone seen this error:
ns1: /acct/peter> rsync ns1.pad.com::acct
overflow: flags=0xe8 l1=3 l2=20709376 lastname=.
ERROR: buffer overflow in receive_file_entry
rsync error: error allocating core memory buffers (code 22) at util.c(238)
ns1: /acct/peter>
--
Peter Dominguez
72 Belvedere Dr
Yonkers, NY 10705-2814
USA
Tel: 914-423-4000
Fax: 914-423-8640
Email: peter@pad.com
2002 Aug 17
0
rsync error: error allocating core memory buffers (code 22) at util.c(238)
If I use rsync as: rsync -rltva /dir /dir2 it works fine.
If I use rsync as: rsync -rltva hosta::dir it works fine and dir points to
in rsyncd.conf /acct/dir I get the following error:
ns1: /acct/peter> rsync ns1::acct
overflow: flags=0xe8 l1=3 l2=20709376 lastname=.
ERROR: buffer overflow in receive_file_entry
rsync error: error allocating core memory buffers (code 22) at util.c(238)
2003 Feb 27
2
PRESS again
Sorry for the repeat.
The PRESS statistic is defined as
sum(y-yhat(i))^2, where yhat(i) denotes the ith predicted value using
all the data except the ith case (as used typically in linear models).
Thanks again
Jacob
Jacob L van Wyk
Department of Mathematics and Statistics
Rand Afrikaans University
P O Box 524
Auckland Park 2006
South Africa
Tel: +27-11-489-3080
Fax: +27-11-489-2832
2009 Nov 02
1
modifying predict.nnet() to function with errorest()
Greetings,
I am having trouble calculating artificial neural network
misclassification errors using errorest() from the ipred package.
I have had no problems estimating the values with randomForest()
or svm(), but can't seem to get it to work with nnet(). I believe
this is due to the output of the predict.nnet() function within
cv.factor(). Below is a quick example of the problem I'm
2003 Jun 24
1
errorest: Error in cv.numeric()
Hi,
I am trying to get an error estimation
for a classification done using lda.
The examples work fine, however I don't get
my own code to work.
The data is in object d
> d
class hydrophobicity charge geometry
1 2 6490.0400 1434.9700 610.99902
2 2 1602.0601 400.6030 -5824.00000
3 2 969.0060 260.1360 -415.00000
4 1
2002 Jul 26
1
inflate returned -3
Good day, all,
I'm trying to transfer a 174M file to a system with 1.2G free.
Other files in the tree come over just fine, but this transfer dies
partway through:
rsync -avvz -e ssh --partial --progress server.with.the.file:/server/directory /local/directory
opening connection using ssh server.with.the.file rsync --server --sender -vvlogDtprz --partial . /local/directory
receiving file
2005 Jun 24
1
mypredict.
Hi,
I am wondering what does "mypredict.lda<-function(object,
newdata)predict(object, newdata=newdata)$class" actually do?
I run a few errorest commands in the same function on the same dataset using
the same classifier lda. The only difference is some use "cv", other use
"boot" and "632plus". They all share one mypredict.lda.
Will it cause any
2005 Jul 29
0
PLS component selection for GPLS question
How to select the number of PLS components for GPLS for data sets
with few samples?
Concrete problem:
My data set: 9 samples of class A and 37 of class B with 254
descriptors.
In the paper: "Classification Using Generalized Partial Least
Squares", Beiying Ding, Robert Gentleman, Bioconductor
Project Working Papers, year 2004, paper 5
Section 2.6 Assessing Prediction:
Cite:
2008 Feb 04
1
garchFit (PR#10698)
Full_Name: Scott Yonker
Version: R for OSX Cocoa
OS: Mac OSX
Submission from: (NULL) (24.208.185.211)
The garchFit function in the Rmetrics libray cannot estimate ARCH models,
meaning that the number of beta terms in the model must be greater than zero.
For this function neither p nor q can be set to zero without an error. The
problem lies in both the specification of the objective function