Caret obtain train & cv predictions from model to plot
问题 I've trained a simple model: mySim <- train(Event ~ ., method = 'rf', data = train, tuneGrid = tg) Optimising the two nnet parameters weight_decay and size of the hidden layer. I'm new to trying out caret so what I would usually do is plot the train error and cv error for each model build. To do this, I'd need to have the predictive values of my train and validation pass. This is the first time I've used cross validation so I'm a little unsure how I can go about getting the predictions from