Machine Learning in R - Next Generation
Overview
Efficient, object-oriented programming on the building blocks of machine learning. Provides 'R6' objects for tasks, learners, resamplings, and measures. The package is geared towards scalability and larger datasets by supporting parallelization and out-of-memory data-backends like databases. While 'mlr3' focuses on the core computational operations, add-on packages provide additional functionality.
- feat: Added
msr("best_valid_score")(mlr_measures_best_valid_score), which reports the *best* internal validation score observed during training/ - feat: Added the
diabetestask (mlr_tasks_diabetes) for the syntheticmlbench::SynthDiabetes2data set, which has the same structure as the formerpimatask including missing values, for use in examples and tests. - BREAKING CHANGE: Removed the
pimatask (mlr_tasks_pima) because thePimaIndiansDiabetes2data set was removed from themlbenchpackage, usetsk("diabetes")instead. - perf:
TaskClassif$print()now caches the class distribution of the target column and only recomputes it when the task hash changes. Querying the target column can be slow for tasks with many rows.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-27
- ERROR9 OK, 1 NOTE, 3 ERROR2026-07-25
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-07-04
- WARNING12 OK, 1 WARNING2026-07-03
Show 4 earlier changesHide 4 earlier changes
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-08
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 174 (12 internal)includes a package overview page
- Examples that run
- 100%72 run in a plain check
- Exported functions with examples
- 64%
- Documented parameters
- 95%
- Return-value docs
- 23%
- Help pages citing references
- 8%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 89
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
17 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/mlr-org/mlr3 on 2026-10-11.
The R CMD check workflow runs on Linux, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-09-25 · The repository has a site deploy workflow
pkgdown site last built 2026-08-21
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Cursorfirst seen 2025-05-16Named in .Rbuildignore: .cursor
- Claude Codefirst seen 2026-02-19Seen in the repository: .claude, CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 28 crediting it in the message
- Gemini CLIfirst seen 2026-03-17Config: a file or ignore line, not recorded which
- Codexfirst seen 2026-09-23Seen in the repository: .codexNamed in .Rbuildignore: .codex
- Claude Opus 4.616 commits · Mar to Apr 2026
- Claude Fable 5.13 commits · Sep 2026
- Claude Opus 53 commits · Aug to Sep 2026
- Claude Fable 52 commits · Jun 2026
- Claude Opus 4.72 commits · Apr to Jun 2026
1 more model not listed.
Dependencies
Installing mlr3 adds 23 packages (11 with compiled code, 15 MB of source tarballs). Heaviest: data.table 5.7 MB, palmerpenguins 2.9 MB, mlbench 967 KB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Previously maintained by Michel Lang (0.1.1 to 0.19.0).
Pick two releases to compare their code metrics.
- 1.8.0Latest
- 1.7.12026-06-11 · diff ↗
- 1.7.02026-06-10 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.6.02026-04-02 · diff ↗
- 1.5.02026-02-27 · diff ↗
- 1.4.02026-02-19 · diff ↗ ·
removed 2 exports
deprecated_binding, warn_deprecatedadded 2 exports
deprecated_binding_old, warn_deprecated_old - 1.3.02025-12-03 · diff ↗
- 1.2.02025-09-14 · diff ↗ ·
removed 1 export
DataBackendMatrixadded 2 exports
assert_quantiles, default_fallback - 1.1.0
- 1.0.1
- 1.0.0
- RR 4.5.0 released · 2025-04-11
- 0.23.02025-03-12 · diff ↗ ·
added 10 exports
CallbackResample, ContextResample, assert_empty_ellipsis, assert_resample_callback, assert_resample_callbacks, assert_scorable, callback_resample, clbk, clbks, mlr_callbacks - 0.22.12024-11-27 · diff ↗
- 0.22.02024-11-24 · diff ↗
Show 45 earlier eventsHide 45 earlier events
- 0.21.12024-10-18 · diff ↗
- 0.21.02024-09-24 · diff ↗ ·
added 5 exports
MeasureRegrRSQ, create_empty_prediction_data, deprecated_binding, task_check_col_roles, warn_deprecated - 0.20.22024-07-29 · diff ↗
- 0.20.12024-07-22 · diff ↗
- 0.20.0
- 0.19.02024-04-24 · diff ↗ ·
added 6 exports
is_marshaled_model, learner_marshal, learner_marshaled, learner_unmarshal, marshal_model, unmarshal_model - RR 4.4.0 released · 2024-04-24
- 0.18.02024-03-05 · diff ↗
- 0.17.22024-01-09 · diff ↗
- 0.17.12023-12-21 · diff ↗
- 0.17.0
- 0.16.1
- 0.16.02023-05-05 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.15.0
- 0.14.12022-11-02 · diff ↗
- 0.14.0
- 0.13.42022-07-21 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.13.32022-03-01 · diff ↗
- 0.13.22022-02-14 · diff ↗
- 0.13.12022-01-19 · diff ↗
- 0.13.02021-11-16 · diff ↗ ·
added 6 exports
HotstartStack, LearnerRegrDebug, MeasureSimilarity, extract_pkgs, filter_prediction_data, install_pkgs - 0.12.02021-08-05 · diff ↗ ·
added 5 exports
MeasureAIC, MeasureBIC, ResamplingCustomCV, assert_predictable, partition - RR 4.1.0 released · 2021-05-18
- 0.11.02021-03-05 · diff ↗ ·
added 4 exports
as_prediction_classif, as_prediction_regr, as_predictions, set_threads - 0.10.02021-01-21 · diff ↗
- 0.9.02020-12-06 · diff ↗
- 0.8.02020-10-21 · diff ↗
- 0.7.0
- 0.6.02020-09-13 · diff ↗ ·
added 8 exports
as_prediction, as_prediction_data, as_resample_result, as_task_classif, as_task_regr, check_prediction_data, convert_task, is_missing_prediction_data - 0.5.0
- 0.4.02020-07-22 · diff ↗ ·
added 5 exports
TaskGeneratorCassini, TaskGeneratorCircle, TaskGeneratorMoons, TaskGeneratorSimplex, TaskGeneratorSpirals - 0.3.02020-06-02 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.2.0
- 0.1.82020-03-10 · diff ↗
- 0.1.72020-02-23 · diff ↗
- 0.1.62019-12-19 · diff ↗
- 0.1.52019-12-10 · diff ↗ ·
removed 9 exports
MeasureClassifACC, MeasureClassifAUC, MeasureClassifCE, MeasureClassifConfusion, MeasureClassifFScore, MeasureRegrMAE, MeasureRegrMSE, MeasureRegrRMSE, confusion_measuresadded 1 export
assert_learnable - 0.1.42019-10-29 · diff ↗ ·
removed 1 export
MeasureClassifF1added 6 exports
MeasureClassifFScore, lrns, msrs, rsmps, tgens, tsks - 0.1.3
- 0.1.22019-08-26 · diff ↗ ·
removed 9 exports
Generator, Generator2DNormals, GeneratorFriedman1, GeneratorSmiley, GeneratorXor, cast_from_dict, expand_grid, mlr_control, mlr_generatorsadded 23 exports
TaskGenerator, TaskGenerator2DNormals, TaskGeneratorFriedman1, TaskGeneratorSmiley, TaskGeneratorXor, as_benchmark_result, as_learner, as_learners, as_measure, as_measures, as_resampling, as_resamplings, as_task, as_tasks, benchmark_grid, default_measures, hash_resample_result, lrn, mlr_task_generators, msr, rsmp, tgen, tsk - 0.1.12019-07-25
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-07-25
- Total releases
- 53 / 7 yrs
- License
- LGPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 850 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlr3")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.01903.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.