search for: mytestdata

Displaying 6 results from an estimated 6 matches for "mytestdata".

2010 Jan 01
1
Questions bout SVM
...is equation to calculate RMSE?: mymodel <- svm(myformula,data=mydata,cross=10) sqrt(mean(mymodel$MSE)) But if I don’t use crossvalidation, I have to use the following to calculate RMSE: mymodel <- svm(myformula,data=mydata) mytest <- predict(mymodel, mytestdata) error <- mytest - mytestdata[,1] sqrt(mean(error**2)) 2)if I don’t set the parameters of SVM, like in the above, how the program knows them? Or it is a must to determine them when I invoke svm? 3)can you please tell me why we use this equation: mymodel <- svm(myformula,data=myd...
2009 Dec 29
3
error logging
Yet another question... I'm wondering if there is a built in facility to log errors. I've got this statement that gives me verbose DBI errors as they come up (to standard output), but I'd like to trap and log them to a file as I running about 3000000 sql statements through this particular piece of code and I'd like to keep the loop going and deal with all the errors once the
2009 Dec 27
1
svm regression/classification
...e for using svm in classification? This is my code for regression, should I change it to do classification?: train <- read.table("trainingset.txt",sep=";") test <- read.table("testset.txt",sep=";") svmmodelfitness <- function(myformula,mydata,mytestdata) { mymodel <- svm(myformula,data=mydata) mytest <- predict(mymodel, mytestdata) error <- mytest - mytestdata[,1] -sqrt(mean(error**2)) } Many thanks, Nancy _________________________________________________________________ [[al...
2003 Dec 06
7
Windows Memory Issues
...7.9 Vcells 87650 0.7 24286664 185.3 > # Memory usage for Rgui process = 20,200k In the above code, R cannot recollect all memory used, so the memory usage increases from 19.8k to 20.2. However, the following example is more typical of the environments I use . > # Memory 128,100k > myTestData <- matrix(rnorm(10000000), 1000) > # Memory 357,272k > rm(myTestData) > # Memory 357,272k > gc() used (Mb) gc trigger (Mb) Ncells 478197 12.8 818163 21.9 Vcells 9309525 71.1 31670210 241.7 > # Memory 279,152k Here, the memory usage increases from 128.1k to 279...
2009 Dec 15
2
read dataset in R language.
Hi, Could you please help me in solving the following error message: Error in `[.data.frame`(mytestdata, fp_temp == 1) : undefined columns selected when I use scan instead on read.table, I reicieve this message: Error in names(ret2) <- rowns : 'names' attribute [172] must be the same length as the vector [152] Many thanks, Nancy ___________________________________...
2009 Jul 14
2
SOS! error in GLM logistic regression...
Hi all, Could anybody tell me what happened to my logistic regression in R? mylog=glm(mytraindata$V1 ~ ., data=mytraindata, family=binomial("logit")) It generated the following error message: Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) : factor 'state1' has new level(s) AP Thank you!