Package: mlr3 0.21.1

Marc Becker

mlr3: Machine Learning in R - Next Generation

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.

Authors:Michel Lang [aut], Bernd Bischl [aut], Jakob Richter [aut], Patrick Schratz [aut], Giuseppe Casalicchio [ctb], Stefan Coors [ctb], Quay Au [ctb], Martin Binder [aut], Florian Pfisterer [aut], Raphael Sonabend [aut], Lennart Schneider [ctb], Marc Becker [cre, aut], Sebastian Fischer [aut], Lona Koers [ctb]

mlr3_0.21.1.tar.gz
mlr3_0.21.1.zip(r-4.5)mlr3_0.21.1.zip(r-4.4)mlr3_0.21.1.zip(r-4.3)
mlr3_0.21.1.tgz(r-4.4-any)mlr3_0.21.1.tgz(r-4.3-any)
mlr3_0.21.1.tar.gz(r-4.5-noble)mlr3_0.21.1.tar.gz(r-4.4-noble)
mlr3_0.21.1.tgz(r-4.4-emscripten)mlr3_0.21.1.tgz(r-4.3-emscripten)
mlr3.pdf |mlr3.html
mlr3/json (API)
NEWS

# Install 'mlr3' in R:
install.packages('mlr3', repos = c('https://mlr-org.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mlr-org/mlr3/issues

On CRAN:

classificationdata-sciencemachine-learningmlr3regression

14.77 score 945 stars 32 packages 2.0k scripts 10k downloads 8 mentions 137 exports 20 dependencies

Last updated 1 months agofrom:857cb4ef5f (on v0.21.1). Checks:OK: 6 ERROR: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 17 2024
R-4.5-winOKNov 17 2024
R-4.5-linuxOKNov 17 2024
R-4.4-winOKNov 17 2024
R-4.4-macERRORNov 17 2024
R-4.3-winOKNov 17 2024
R-4.3-macOKNov 17 2024

Exports:as_benchmark_resultas_data_backendas_learneras_learnersas_measureas_measuresas_predictionas_prediction_classifas_prediction_dataas_prediction_regras_predictionsas_resample_resultas_resamplingas_resamplingsas_result_dataas_taskas_task_classifas_task_regras_task_unsupervisedas_tasksas_tasks_unsupervisedas.data.tableassert_backendassert_benchmark_resultassert_learnableassert_learnerassert_learnersassert_measureassert_measuresassert_predictableassert_predictionassert_resample_resultassert_resamplingassert_resamplingsassert_row_idsassert_taskassert_tasksassert_validateauto_convertbenchmarkbenchmark_gridBenchmarkResultcheck_prediction_datacol_infoconvert_taskcreate_empty_prediction_datadata.tableDataBackendDataBackendDataTableDataBackendMatrixdefault_measuresdeprecated_bindingextract_pkgsfilter_prediction_dataHotstartStackinstall_pkgsis_marshaled_modelis_missing_prediction_dataLearnerlearner_marshallearner_marshaledlearner_unmarshalLearnerClassifLearnerClassifDebugLearnerClassifFeaturelessLearnerClassifRpartLearnerRegrLearnerRegrDebugLearnerRegrFeaturelessLearnerRegrRpartlrnlrnsmarshal_modelMeasureMeasureAICMeasureBICMeasureClassifMeasureClassifCostsMeasureDebugClassifMeasureElapsedTimeMeasureInternalValidScoreMeasureOOBErrorMeasureRegrMeasureRegrRSQMeasureSelectedFeaturesMeasureSimilaritymlr_learnersmlr_measuresmlr_reflectionsmlr_resamplingsmlr_task_generatorsmlr_tasksmsrmsrspartitionPredictionPredictionClassifPredictionRegrresampleResampleResultResamplingResamplingBootstrapResamplingCustomResamplingCustomCVResamplingCVResamplingHoldoutResamplingInsampleResamplingLOOResamplingRepeatedCVResamplingSubsamplingResultDatarsmprsmpsset_threadsset_validateTasktask_check_col_rolesTaskClassifTaskGeneratorTaskGenerator2DNormalsTaskGeneratorCassiniTaskGeneratorCircleTaskGeneratorFriedman1TaskGeneratorMoonsTaskGeneratorSimplexTaskGeneratorSmileyTaskGeneratorSpiralsTaskGeneratorXorTaskRegrTaskSupervisedTaskUnsupervisedtgentgenstsktsksunmarshal_modelwarn_deprecated

Dependencies:backportscheckmatecodetoolsdata.tabledigestevaluatefuturefuture.applyglobalslgrlistenvmlbenchmlr3measuresmlr3miscpalmerpenguinsparadoxparallellyPRROCR6uuid

Readme and manuals

Help Manual

Help pageTopics
mlr3: Machine Learning in R - Next Generationmlr3-package mlr3
Convert to BenchmarkResultas_benchmark_result as_benchmark_result.BenchmarkResult as_benchmark_result.ResampleResult
Create a Data Backendas_data_backend as_data_backend.data.frame as_data_backend.Matrix
Convert to a Learneras_learner as_learner.Learner as_learners as_learners.default as_learners.list
Convert to a Measureas_measure as_measure.Measure as_measure.NULL as_measures as_measures.default as_measures.list as_measures.NULL
Convert to a Predictionas_prediction as_prediction.Prediction as_prediction.PredictionDataClassif as_prediction.PredictionDataRegr as_predictions as_predictions.list
Convert to a Classification Predictionas_prediction_classif as_prediction_classif.data.frame as_prediction_classif.PredictionClassif
PredictionDataas_prediction_data as_prediction_data.list as_prediction_data.Prediction as_prediction_data.PredictionData
Convert to a Regression Predictionas_prediction_regr as_prediction_regr.data.frame as_prediction_regr.PredictionRegr
Convert to ResampleResultas_resample_result as_resample_result.list as_resample_result.ResampleResult as_resample_result.ResultData
Convert to a Resamplingas_resampling as_resampling.Resampling as_resamplings as_resamplings.default as_resamplings.list
Convert to ResultDataas_result_data
Convert to a Taskas_task as_task.Task as_tasks as_tasks.default as_tasks.list
Convert to a Classification Taskas_task_classif as_task_classif.data.frame as_task_classif.DataBackend as_task_classif.formula as_task_classif.Matrix as_task_classif.matrix as_task_classif.TaskClassif as_task_classif.TaskRegr
Convert to a Regression Taskas_task_regr as_task_regr.data.frame as_task_regr.DataBackend as_task_regr.formula as_task_regr.Matrix as_task_regr.matrix as_task_regr.TaskClassif as_task_regr.TaskRegr
Convert to an Unsupervised Taskas_tasks_unsupervised as_tasks_unsupervised.list as_tasks_unsupervised.Task as_task_unsupervised as_task_unsupervised.data.frame as_task_unsupervised.DataBackend as_task_unsupervised.Task
Benchmark Multiple Learners on Multiple Tasksbenchmark
Generate a Benchmark Grid Designbenchmark_grid
Container for Benchmarking ResultsBenchmarkResult
Convert a Task from One Type to Anotherconvert_task
DataBackendDataBackend
DataBackend for data.tableDataBackendDataTable
DataBackend for MatrixDataBackendMatrix
Create a Fallback Learnerdefault_fallback default_fallback.Learner default_fallback.LearnerClassif default_fallback.LearnerRegr
Get the Default Measuredefault_measures
Stack for Hot Start LearnersHotstartStack
Install (Missing) Packagesextract_pkgs extract_pkgs.BenchmarkResult extract_pkgs.character extract_pkgs.list extract_pkgs.R6 extract_pkgs.ResampleResult install_pkgs
Learner ClassLearner
Classification LearnerLearnerClassif
Regression LearnerLearnerRegr
(Un)marshal a Learneris_marshaled_model learner_marshal learner_marshaled learner_unmarshal marshaling marshal_model unmarshal_model
Measure ClassMeasure
Classification MeasureMeasureClassif
Regression MeasureMeasureRegr
Similarity MeasureMeasureSimilarity
Dictionary of Learnersmlr_learners
Classification Learner for DebuggingLearnerClassifDebug mlr_learners_classif.debug
Featureless Classification LearnerLearnerClassifFeatureless mlr_learners_classif.featureless
Classification Tree LearnerLearnerClassifRpart mlr_learners_classif.rpart
Regression Learner for DebuggingLearnerRegrDebug mlr_learners_regr.debug
Featureless Regression LearnerLearnerRegrFeatureless mlr_learners_regr.featureless
Regression Tree LearnerLearnerRegrRpart mlr_learners_regr.rpart
Dictionary of Performance Measuresmlr_measures
Akaike Information Criterion MeasureMeasureAIC mlr_measures_aic
Bayesian Information Criterion MeasureMeasureBIC mlr_measures_bic
Classification Accuracymlr_measures_classif.acc
Area Under the ROC Curvemlr_measures_classif.auc
Balanced Accuracymlr_measures_classif.bacc
Binary Brier Scoremlr_measures_classif.bbrier
Classification Errormlr_measures_classif.ce
Cost-sensitive Classification MeasureMeasureClassifCosts mlr_measures_classif.costs
Diagnostic Odds Ratiomlr_measures_classif.dor
F-beta Scoremlr_measures_classif.fbeta
False Discovery Ratemlr_measures_classif.fdr
False Negativesmlr_measures_classif.fn
False Negative Ratemlr_measures_classif.fnr
False Omission Ratemlr_measures_classif.fomr
False Positivesmlr_measures_classif.fp
False Positive Ratemlr_measures_classif.fpr
Log Lossmlr_measures_classif.logloss
Multiclass AUC Scoresmlr_measures_classif.mauc_au1p
Multiclass AUC Scoresmlr_measures_classif.mauc_au1u
Multiclass AUC Scoresmlr_measures_classif.mauc_aunp
Multiclass AUC Scoresmlr_measures_classif.mauc_aunu
Multiclass AUC Scoresmlr_measures_classif.mauc_mu
Multiclass Brier Scoremlr_measures_classif.mbrier
Matthews Correlation Coefficientmlr_measures_classif.mcc
Negative Predictive Valuemlr_measures_classif.npv
Positive Predictive Valuemlr_measures_classif.ppv
Area Under the Precision-Recall Curvemlr_measures_classif.prauc
Positive Predictive Valuemlr_measures_classif.precision
True Positive Ratemlr_measures_classif.recall
True Positive Ratemlr_measures_classif.sensitivity
True Negative Ratemlr_measures_classif.specificity
True Negativesmlr_measures_classif.tn
True Negative Ratemlr_measures_classif.tnr
True Positivesmlr_measures_classif.tp
True Positive Ratemlr_measures_classif.tpr
Debug Measure for ClassificationMeasureDebugClassif mlr_measures_debug_classif
Elapsed Time MeasureMeasureElapsedTime mlr_measures_elapsed_time mlr_measures_time_both mlr_measures_time_predict mlr_measures_time_train
Measure Internal Validation ScoreMeasureInternalValidScore mlr_measures_internal_valid_score
Out-of-bag Error MeasureMeasureOOBError mlr_measures_oob_error
Biasmlr_measures_regr.bias
Kendall's taumlr_measures_regr.ktau
Mean Absolute Errormlr_measures_regr.mae
Mean Absolute Percent Errormlr_measures_regr.mape
Max Absolute Errormlr_measures_regr.maxae
Median Absolute Errormlr_measures_regr.medae
Median Squared Errormlr_measures_regr.medse
Mean Squared Errormlr_measures_regr.mse
Mean Squared Log Errormlr_measures_regr.msle
Percent Biasmlr_measures_regr.pbias
Average Pinball Lossmlr_measures_regr.pinball
Relative Absolute Errormlr_measures_regr.rae
Root Mean Squared Errormlr_measures_regr.rmse
Root Mean Squared Log Errormlr_measures_regr.rmsle
Root Relative Squared Errormlr_measures_regr.rrse
Relative Squared Errormlr_measures_regr.rse
R-SquaredMeasureRegrRSQ mlr_measures_regr.rsq
Sum of Absolute Errorsmlr_measures_regr.sae
Symmetric Mean Absolute Percent Errormlr_measures_regr.smape
Spearman's rhomlr_measures_regr.srho
Sum of Squared Errorsmlr_measures_regr.sse
Selected Features MeasureMeasureSelectedFeatures mlr_measures_selected_features
Jaccard Similarity Indexmlr_measures_sim.jaccard
Phi Coefficient Similaritymlr_measures_sim.phi
Dictionary of Resampling Strategiesmlr_resamplings
Bootstrap Resamplingmlr_resamplings_bootstrap ResamplingBootstrap
Custom Resamplingmlr_resamplings_custom ResamplingCustom
Custom Cross-Validationmlr_resamplings_custom_cv ResamplingCustomCV
Cross-Validation Resamplingmlr_resamplings_cv ResamplingCV
Holdout Resamplingmlr_resamplings_holdout ResamplingHoldout
Insample Resamplingmlr_resamplings_insample ResamplingInsample
Leave-One-Out Cross-Validationmlr_resamplings_loo ResamplingLOO
Repeated Cross-Validation Resamplingmlr_resamplings_repeated_cv ResamplingRepeatedCV
Subsampling Resamplingmlr_resamplings_subsampling ResamplingSubsampling
Syntactic Sugar for Object Constructionlrn lrns mlr_sugar msr msrs rsmp rsmps set_validate tgen tgens tsk tsks
Dictionary of Task Generatorsmlr_task_generators
2D Normals Classification Task Generatormlr_task_generators_2dnormals TaskGenerator2DNormals
Cassini Classification Task Generatormlr_task_generators_cassini TaskGeneratorCassini
Circle Classification Task Generatormlr_task_generators_circle TaskGeneratorCircle
Friedman1 Regression Task Generatormlr_task_generators_friedman1 TaskGeneratorFriedman1
Moons Classification Task Generatormlr_task_generators_moons TaskGeneratorMoons
Simplex Classification Task Generatormlr_task_generators_simplex TaskGeneratorSimplex
Smiley Classification Task Generatormlr_task_generators_smiley TaskGeneratorSmiley
Spiral Classification Task Generatormlr_task_generators_spirals TaskGeneratorSpirals
XOR Classification Task Generatormlr_task_generators_xor TaskGeneratorXor
Dictionary of Tasksmlr_tasks
Boston Housing Regression Taskmlr_tasks_boston_housing
Wisconsin Breast Cancer Classification Taskmlr_tasks_breast_cancer
German Credit Classification Taskmlr_tasks_german_credit
Iris Classification Taskmlr_tasks_iris
Motor Trend Regression Taskmlr_tasks_mtcars
Palmer Penguins Data Setmlr_tasks_penguins
Pima Indian Diabetes Classification Taskmlr_tasks_pima
Sonar Classification Taskmlr_tasks_sonar
Spam Classification Taskmlr_tasks_spam
Wine Classification Taskmlr_tasks_wine
Zoo Classification Taskmlr_tasks_zoo
Documentation of mlr3 test helpersmlr_test_helpers
Manually Partition into Training, Test and Validation Setpartition
Predict Method for Learnerspredict.Learner
Abstract Prediction ObjectPrediction
Prediction Object for ClassificationPredictionClassif
Convert to PredictionDatac.PredictionDataClassif c.PredictionDataRegr check_prediction_data check_prediction_data.PredictionDataClassif check_prediction_data.PredictionDataRegr create_empty_prediction_data filter_prediction_data is_missing_prediction_data is_missing_prediction_data.PredictionDataClassif is_missing_prediction_data.PredictionDataRegr PredictionData
Prediction Object for RegressionPredictionRegr
Resample a Learner on a Taskresample
Container for Results of 'resample()'ResampleResult
Resampling ClassResampling
Set the Number of Threadsset_threads set_threads.default set_threads.list set_threads.R6
Task ClassTask
Classification TaskTaskClassif
TaskGenerator ClassTaskGenerator
Regression TaskTaskRegr