• Stars
    star
    1,643
  • Rank 28,446 (Top 0.6 %)
  • Language
    R
  • License
    Other
  • Created about 11 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Machine Learning in R

mlr

Package website: release | dev

Machine learning in R.

tic CRAN_Status_Badge cran checks CRAN Downloads StackOverflow lifecycle codecov

Deprecated

{mlr} is considered retired from the mlr-org team. We won't add new features anymore and will only fix severe bugs. We suggest to use the new mlr3 framework from now on and for future projects.

Not all features of {mlr} are already implemented in {mlr3}. If you are missing a crucial feature, please open an issue in the respective mlr3 extension package and do not hesitate to follow-up on it.

Installation

Release

install.packages("mlr")

Development

remotes::install_github("mlr-org/mlr")

Citing {mlr} in publications

Please cite our JMLR paper [bibtex].

Some parts of the package were created as part of other publications. If you use these parts, please cite the relevant work appropriately. An overview of all {mlr} related publications can be found here.

Introduction

R does not define a standardized interface for its machine-learning algorithms. Therefore, for any non-trivial experiments, you need to write lengthy, tedious and error-prone wrappers to call the different algorithms and unify their respective output.

Additionally you need to implement infrastructure to

  • resample your models
  • optimize hyperparameters
  • select features
  • cope with pre- and post-processing of data and compare models in a statistically meaningful way.

As this becomes computationally expensive, you might want to parallelize your experiments as well. This often forces users to make crummy trade-offs in their experiments due to time constraints or lacking expert programming skills.

{mlr} provides this infrastructure so that you can focus on your experiments! The framework provides supervised methods like classification, regression and survival analysis along with their corresponding evaluation and optimization methods, as well as unsupervised methods like clustering. It is written in a way that you can extend it yourself or deviate from the implemented convenience methods and construct your own complex experiments or algorithms.

Furthermore, the package is nicely connected to the OpenML R package and its online platform, which aims at supporting collaborative machine learning online and allows to easily share datasets as well as machine learning tasks, algorithms and experiments in order to support reproducible research.

Features

  • Clear S3 interface to R classification, regression, clustering and survival analysis methods
  • Abstract description of learners and tasks by properties
  • Convenience methods and generic building blocks for your machine learning experiments
  • Resampling methods like bootstrapping, cross-validation and subsampling
  • Extensive visualizations (e.g. ROC curves, predictions and partial predictions)
  • Simplified benchmarking across data sets and learners
  • Easy hyperparameter tuning using different optimization strategies, including potent configurators like
    • iterated F-racing (irace)
    • sequential model-based optimization
  • Variable selection with filters and wrappers
  • Nested resampling of models with tuning and feature selection
  • Cost-sensitive learning, threshold tuning and imbalance correction
  • Wrapper mechanism to extend learner functionality in complex ways
  • Possibility to combine different processing steps to a complex data mining chain that can be jointly optimized
  • OpenML connector for the Open Machine Learning server
  • Built-in parallelization
  • Detailed tutorial

Miscellaneous

Simple usage questions are better suited at Stackoverflow using the mlr tag.

Please note that all of us work in academia and put a lot of work into this project - simply because we like it, not because we are paid for it.

New development efforts should go into {mlr3}. We have a own style guide which can easily applied by using the mlr_style from the styler package. See our wiki for more information.

Talks, Workshops, etc.

mlr-outreach holds all outreach activities related to {mlr} and {mlr3}.

More Repositories

1

mlr3

mlr3: Machine Learning in R - next generation
R
937
star
2

mlr3book

Online version of Bischl, B., Sonabend, R., Kotthoff, L., & Lang, M. (Eds.). (2024). "Applied Machine Learning Using mlr3 in R". CRC Press.
TeX
253
star
3

mlrMBO

Toolbox for Bayesian Optimization and Model-Based Optimization in R
R
187
star
4

mlr3pipelines

Dataflow Programming for Machine Learning in R
R
138
star
5

mlr3proba

Probabilistic Learning for mlr3
R
128
star
6

mlr3extralearners

Extra learners for use in mlr3.
R
90
star
7

mlr3learners

Recommended learners for mlr3
R
90
star
8

mlr-outreach

HTML
64
star
9

parallelMap

R package to interface some popular parallelization backends with a unified interface
R
57
star
10

mlr3tuning

Hyperparameter optimization package of the mlr3 ecosystem
R
54
star
11

mlr3verse

Meta-package for installing/updating mlr3* packages.
R
50
star
12

mlr3spatiotempcv

Spatiotemporal resampling methods for mlr3
TeX
48
star
13

mlr3viz

Visualizations for mlr3
R
42
star
14

mlr3spatial

Spatial objects within the mlr3 ecosystem
HTML
42
star
15

mlr3torch

Deep learning framework for the mlr3 ecosystem based on torch
R
38
star
16

mlrCPO

Composable Preprocessing Operators for MLR
R
37
star
17

mlr3keras

Deep learning for mlr3
R
36
star
18

mcboost

Multi-Calibration & Multi-Accuracy Boosting for R
R
30
star
19

paradox

ParamHelpers Next Generation
R
28
star
20

ParamHelpers

Helpers for parameters in black-box optimization, tuning and machine learning.
R
26
star
21

mlr3mbo

Flexible Bayesian Optimization in R
R
25
star
22

mlr3cluster

Cluster analysis for mlr3
R
21
star
23

mlr3fselect

Feature selection package of the mlr3 ecosystem.
R
21
star
24

mlr3gallery

Case studies using mlr3
HTML
21
star
25

mlr3db

Data Backends to let mlr3 work transparently with (remote) data bases
R
21
star
26

mlr3filters

Filter-based feature selection for mlr3
R
20
star
27

bbotk

Black-box optimization framework for R.
R
20
star
28

mlr3temporal

Forecasting for mlr3
HTML
20
star
29

mlr3-learndrake

Template for using mlr3 with drake
HTML
18
star
30

mlr3hyperband

Successive Halving and Hyperband in the mlr3 ecosystem
R
18
star
31

miesmuschel

Flexible Mixed Integer Evolutionary Strategies
R
15
star
32

user2020

Material for the useR2020 tutorial
14
star
33

mlr3fairness

mlr3 extension for Fairness in Machine Learning
HTML
14
star
34

mlr3tuningspaces

Collection of search spaces for hyperparameter optimization in the mlr3 ecosystem
R
13
star
35

mlr3measures

Performance measures used in mlr3
R
13
star
36

mlr3benchmark

Analysis and tools for benchmarking in mlr3 and beyond.
R
12
star
37

mlr3misc

Miscellaneous helper functions for mlr3
R
12
star
38

farff

a faster arff parser
R
11
star
39

mlr3cheatsheets

Cheat Sheets for mlr3 and Friends
HTML
11
star
40

mlr3website

The mlr3 quarto website and accomanying R package.
R
8
star
41

rush

Parallel and distributed computing in R.
R
8
star
42

mlr-extralearner

R
8
star
43

mlr3survival

Survival analysis for mlr3
R
7
star
44

mlr3automl

R
6
star
45

mlr3-targets

R
6
star
46

mlr3oml

Connect mlr3 with OpenML
R
6
star
47

mlr3summary

R
6
star
48

mlr3learners.template

Learner from package {<package>} for mlr3
R
5
star
49

mlr3batchmark

Connector between mlr3 and batchtools
R
5
star
50

mlr3docker

Docker Image for mlr3
Dockerfile
5
star
51

mlr3ordinal

Ordinal Regression for mlr3
R
5
star
52

mlr3fda

Functional Data Analysis for mlr3
R
4
star
53

mlr3multioutput

Multiple Targets for mlr3
R
4
star
54

styler.mlr

{styler} mlr style guide
R
4
star
55

mlr3forecast

Time series forecasting for mlr3
R
4
star
56

mlr-web

HTML
3
star
57

mlr3pkgdowntemplate

pkgdown template package for mlr* packages
SCSS
2
star
58

mlr3data

Data sets used in the book, gallery, or in examples of mlr3.
R
2
star
59

mlr3inferr

Statistical methods for inference on the generalization error
R
2
star
60

mlr3ensemble

mlr3 extension package for ensemble machine learning
R
1
star
61

mlr-org-website

HTML
1
star
62

mlrcranlog

mlr-org cranlogs
R
1
star