search for: intrain

Displaying 2 results from an estimated 2 matches for "intrain".

Did you mean: intrain1
2013 Jul 24
1
Help to improve prediction from supervised mapping using kohonen package
...e to predict MEAS_TC using a new set of data with missing values of MEAS_TC. Below I'm simply splitting the somdata into a training and a testing set for evaluation purposes. # ===== # library(kohonen) somdata <- read.csv("somdata.csv") # Create test and training sets from data: inTrain <- sample(nrow(somdata), nrow(somdata)*(2/3)) training <- somdata[inTrain, ] testing <- somdata[-inTrain, ] # Supervised kohonen map, where the dependent variable is MEAS_TC. # Attempting to follow the examples in Wehrens and Buydens, 2007, 21(5), J Stat Soft. # somdata[1] is the MEAS_TC...
2011 Mar 18
2
Need help with error
Hi R users, I am getting the following error when using the splsda function in R v2.12.1: "Error in switch(classifier, logistic = { : EXPR must be a length 1 vector" What does this mean and how do I fix this? Thank you in advance! Best, Savi