-1

I am using the mlr package in R to run the KNN algorithm. I am using tuneParams to search for the optimal k. When I run tuneParams the output shows the performance for each value of k. How can I save the performance for each k? The TuneResult object only has the optimal performance. I would like to use this to create a graph with the performance as a function of k.

1 Answers1

0

To complete the answer you found yourself: The best way to access all the settings that have been tried out:

as.data.frame(TuneResult$opt.path)

jakob-r
  • 6,824
  • 3
  • 29
  • 47