Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I'm trying to chose the best prediction/classification model for a concrete problem. The methodology I've been asked to follow is this:

  • Separate the data into test and training.
  • Run a concrete model with the training data and evaluate it with 10-fold cross-validation to get best parameters for that model (evaluating the error given).
  • Repeat with other models until I have the best configuration for each of the chosen classification models.
  • Finally, I have to re-run each model with their best set of parameters, where the data to train is "trainingdata" and the error given as result might come from "testdata" (please note that test data hasn't been used until now, to avoid distorsion on final comparison).

I've been doing this using the package TunePareto, which has a nice and easy to run function to run some classification models (like Naive Byes or kNN) along with 10-fold CV on a dataframe. The problem arrives with the last task I mentioned: I don't know how to use a specific dataframe as test with TunePareto. Can anybody help me with this?

I've searched for some examples but found nothing. In case TunePareto doesn't allow this I would be glad of listening about alternatives.

share|improve this question
Welcome to CV, @Hauri. Is your only question how to get R to do this? If so, your Q is off-topic (see our FAQ), but on-topic on Stack Overflow. If you have a question about the statistical aspects of this situation, please edit your Q to clarify this; if not, please flag your Q & we will migrate it for you. (Please don't cross-post, though, SE discourages this.) – gung Jan 10 at 19:04

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.