R MLR package - Saving performance for each parameter

108 Views Asked by At

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

There are 1 best solutions below

0
On

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)