Easy Hyper Parameter Optimization with mlr and mlrMBO.




mlrHyperopt aims at making hyperparameter optimization of machine learning methods super simple. It offers tuning in one line:

res = hyperopt(iris.task, learner = "classif.svm")
## Tune result:
## Op. pars: cost=5.08; gamma=0.055
## mmce.test.mean=0.02

Mainly it uses the learner implemented in mlr and uses the tuning methods also available in mlr. Unfortunately mlr lacks of well defined search spaces for each learner to make hyperparameter tuning easy.

mlrHyperopt includes default search spaces for the most common machine learning methods like random forest, svm and boosting.

As the developer can not be an expert on all machine learning methods available for R and mlr, mlrHyperopt also offers a web service to share, upload and download improved search spaces.

Development Status

Web Server

Under heavy construction. ParConfigs are up- and downloaded via JSON and stored on the server in a database. It’s a very basic Ruby on Rails CRUD App generated via scaffolding with tiny modifications https://github.com/jakob-r/mlrHyperoptServer. ToDo: * Voting System * Upload-/Download Count * Improve API * Return existing ID when a duplicate is uploaded (instead of error). * Allow a combined search (intead of one key value pair).

R package

Basic functionality works reliable. Maybe I will improve the optimization heuristics in the future. Still needs more default search spaces for popular learners!


Is encouraged! 👍