mlr3(Machine Learning in Rhttps://github.com/mlr-org/mlr3

    https://mlr3book.mlr-org.com/

    Part I: 基础

    Part II:

    On the most basic level, the unified interface provides functionality to train, test, and evaluate many machine learning algorithms. You can also take this a step further with hyperparameter optimization, computational pipelines, model interpretation, and much more. mlr3 has similar overall aims to caret and tidymodels for R, scikit-learn for Python, and MLJ for Julia. In general, mlr3 is designed to provide more flexibility than other ML frameworks while still offering easy ways to use advanced functionality. While tidymodels in particular makes it very easy to perform simple ML tasks, mlr3 is more geared towards advanced ML.

    1. install.packages("mlr3verse")

    mlr3 生态中,有许多包。

    都可以通过 install.packages() 进行下载。

    1. remotes::install_github("mlr-org/{pkg}")

    基本结构和设计有一个整体概念

    文章里有训练,已有答案:

    https://mlr3book.mlr-org.com/chapters/appendices/solutions.html

    规范
    class(R6 类):首字母大写

    函数:小写

    函数使用:pkg::function

    1. library(mlr3)
    2. task = tsk("penguins")
    3. split = partition(task)
    4. learner = lrn("classif.rpart")
    5. learner$train(task, row_ids = split$train)
    6. learner$model

    https://mlr-org.com/ecosystem.html

    使用 mlr3 进行机器学习(一)介绍 - 图1

    https://mlr3.mlr-org.com/reference/index.html