Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Hyperparameters and Tuning Strategies for Random Forest

tuneRanger tunes random forest hyperparameters with one function call

  • Problem Random forest works well with its software defaults, but the default mtry is a rule of thumb. For some datasets it is far from the best choice, leaving large error gaps.
  • Method tuneRanger wraps model-based optimization around the ranger package. A surrogate model learns from earlier evaluations and proposes the next setting, so one call tunes mtry, sample size and node size.
  • Results On 39 binary-target OpenML datasets, tuneRangerMMCE reached a mean misclassification error of 0.0923, compared to 0.1054 for ranger with default settings.

Why default settings fall short

Random forest usually works reasonably well with its software defaults. The default mtry is the square root of p for classification and p/3 for regression, where p is the number of predictors. That value is a rule of thumb, and for a particular dataset it can be far from the best choice.

On monks-problems-2, an artificial dataset with six categorical predictors, the default forest's error rate is about 0.15 higher than the other algorithms. The default mtry of 2 often splits on the wrong variables, because the dependence between the categories needs the right pair to be picked. Setting mtry to 6 makes the predictions nearly perfect, so the failure comes from the setting rather than the method.

Such gains are not always this large. Across 38 datasets, Probst et al. (2018) found an average AUC gain of 0.010 from tuning compared to default values. The authors call this moderate, although it can matter when each wrongly classified observation is costly.

How tuneRanger searches the settings

The key idea is to replace blind trial and error with a surrogate model that learns from earlier evaluations. The surrogate is fitted to all evaluated settings, and an infill criterion proposes the next candidate that has a good predicted outcome in a region not yet explored. The evaluation uses out-of-bag predictions, so no separate validation split is needed.

It then runs 70 iterative steps by default, and the user can change both numbers.

By default the function tunes mtry, sample size and node size together. mtry is sampled from 0 to p, sample size from 0.2 to 0.9 times n, and node size is drawn more often at small values. The user can narrow the set of tuned parameters or add others, such as the sampling strategy.

After the search, the package averages the best 5 percent of iterations and rounds mtry and node size. That averaged setting trains the final forest, which is returned in the result object. The default measure is the Brier score for classification, and users can switch it to another measure from mlr.

Benchmark results against other tuners

The benchmark uses 39 binary-target OpenML datasets without missing values, split into 26 small and 13 big ones. Each method trains 2000 trees, and parallel runs use 10 CPU cores where possible.

On the mean misclassification error, tuneRangerMMCE averaged 0.0923, compared to 0.1054 for ranger default. tuneRangerBrier had the lowest mean Brier score, 0.1325, compared to 0.1604 for ranger default. Each variant does best on the measure it optimizes, although the authors note that the rank picture is less clean.

The price is runtime. ranger default averaged a training runtime of 3.8607, while mlrHyperopt averaged 2713.2438. mlrHyperopt is competitive in accuracy, but it uses 10-fold cross-validation, which the authors say makes it about ten times slower on bigger datasets.

What tuning mtry alone misses

The authors also ran the tuneRanger variants with only mtry tuned, which isolates the value of node size and sample size. Tuning all three parameters improves the mean MMCE by 0.004 and the mean Brier score by 0.010, compared to tuning mtry alone. The authors name mtry as the most influential of the three parameters, so the extra gains are real but smaller.

The authors also ran a single-dataset check on monks-problem-1. Its tuned setting was mtry 6, minimum node size 2 and sample fraction 0.899. Under 5 times repeated 5-fold cross-validation, the error rate improved by 0.014 and the Brier score by 0.120, compared to a ranger forest with 1000 trees.

Limits of the evidence

Out-of-bag evaluation is the source of tuneRanger's speed, but it has known blind spots. The authors report a bias in very small datasets, with n below 20, many predictor variables and balanced classes. They recommend out-of-bag tuning for most datasets, not for all of them.

All reported benchmark results are for classification on binary-target datasets without missing values. The 39 datasets come from one benchmarking suite, so the averages describe that collection only.

Some tuners failed on some datasets: mlrHyperopt on 2, caret on 4 and tuneRF on 3. Failed runs were given the worst result of the other algorithms if they failed in more than 20 percent of iterations, and otherwise missing values were imputed.

Paper info

Authors
Philipp Probst, Marvin Wright, Anne-Laure Boulesteix
Venue
arXiv · Preprint
First published
2018-4-10
Added
2026-11-12
Updated
2019-2-26
Version
v2
arXiv
1804.03515
DOI
10.1002/widm.1301
Category
stat.ML · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Philipp Probst, Marvin Wright, Anne-Laure Boulesteix (2018). Hyperparameters and Tuning Strategies for Random Forest. arXiv:1804.03515v2. https://doi.org/10.1002/widm.1301

BibTeX
@article{probst2018hyperparameters,
  title = {{Hyperparameters and Tuning Strategies for Random Forest}},
  author = {Philipp Probst and Marvin Wright and Anne-Laure Boulesteix},
  year = {2018},
  eprint = {1804.03515},
  archivePrefix = {arXiv},
  doi = {10.1002/widm.1301},
  url = {https://arxiv.org/abs/1804.03515v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up