Training models in R

r

#1

Hello,

I cam across the following code which is used to train a model:

model <- train(RT..seconds.~., data = cadets, 
               method = "nnet", trControl = ctrl,
               linout = TRUE)

Is this the same thing as running an algorithm on train data or is this something else.In my limited knowledge of R,this is the first time I came through a code like this and not being able to run R on my system also(ubuntu issues) :frowning:
So can somebody please help me with this!!


#2

Where did you find the code? This is a function in the ‘caret’ package.
You can read about the caret package (search on the internet) and find out how to use it to create and validate models.