mlr3torch:基于mlr3和torch的R语言深度学习框架 mlr3torch: A Deep Learning Framework in R based on mlr3 and torch 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-20
👁️ 预览文献
💡 AI 中文简介
本文介绍了R语言包mlr3torch,一个为mlr3生态系统构建的可扩展深度学习框架。它基于torch包,简化了表格数据和通用张量(如图像)上神经网络的分类与回归任务的定义、训练和评估。该包支持预定义架构,可将torch模型转换为mlr3学习器,并允许用户以图的形式定义神经网络,将预处理、数据增强和网络架构整合到单一图中。通过集成mlr3生态,支持重采样、基准测试等。文章通过超参数调优、微调和多模态数据架构三个用例展示其能力,并给出运行时基准测试。
领域机器学习/深度学习框架与工具
适合谁读需要一定专业背景(熟悉R语言和机器学习基础)
核心贡献1. 提出了一个可扩展的R语言深度学习框架mlr3torch,无缝集成mlr3生态系统,支持表格数据和通用张量。2. 创新性地允许以图的形式定义整个建模工作流(包括预处理、数据增强和网络架构),基于mlr3pipelines的图语言。
关键数据暂无显著硬数据
推荐理由如果你用R做深度学习,这个包能让你像搭积木一样构建和调优神经网络,还能无缝接入mlr3的完整生态,非常值得一试!
关键词["深度学习", "机器学习", "R语言", "神经网络", "mlr3生态系统", "torch框架"]

原文摘要

查看英文原文摘要

Deep learning (DL) has become a cornerstone of modern machine learning (ML) praxis. We introduce the R package mlr3torch, which is an extensible DL framework for the mlr3 ecosystem. It is built upon the torch package, and simplifies the definition, training, and evaluation of neural networks for both tabular data and generic tensors (e.g., images) for classification and regression. The package implements predefined architectures, and torch models can easily be converted to mlr3 learners. It also allows users to define neural networks as graphs. This representation is based on the graph language defined in mlr3pipelines and allows users to define the entire modeling workflow, including preprocessing, data augmentation, and network architecture, in a single graph. Through its integration into the mlr3 ecosystem, the package allows for convenient resampling, benchmarking, preprocessing, and more. We explain the package's design and features and show how to customize and extend it to new problems. Furthermore, we demonstrate the package's capabilities using three use cases, namely hyperparameter tuning, fine-tuning, and defining architectures for multimodal data. Finally, we present some runtime benchmarks.