cito:一个使用 torch 训练神经网络的 R 包
cito: An R package for training neural networks using torch
AI总结:
本文提出 R 包 cito,通过熟悉的 R 公式接口调用 torch 训练 DNN,并支持 GPU、bootstrap 置信区间和 xAI 分析,降低生态学者使用深度学习的门槛。
摘要:
深度神经网络(DNN)已成为生态学中的一种核心方法。当前大多数深度学习(DL)应用都依赖于某一主流深度学习框架来构建和训练 DNN,尤其是 Torch 或 TensorFlow。然而,与 R 环境中典型的回归函数相比,使用这些框架需要显著更多的经验和时间。在此,我们介绍“cito”,这是一个面向深度学习的用户友好型 R 包,允许使用许多 R 包所采用的、人们熟悉的公式语法来指定 DNN。为了拟合模型,“cito”使用“torch”,充分利用经过数值优化的 torch 库,包括在 CPU 或图形处理器(GPU)上切换训练模型的能力(这使得高效训练大型 DNN 成为可能)。此外,“cito”包含许多用于模型绘图和分析的用户友好型函数,包括基于 bootstrap 的可选预测置信区间(CIs),以及用于效应量和变量重要性的可解释人工智能(xAI)指标,并提供置信区间和 p 值。为了展示使用“cito”的典型分析流程,包括利用其内置 xAI 功能探索已训练的 DNN,我们构建了一个非洲象的物种分布模型。我们希望,通过提供一个用于指定、部署和解释 DNN 的用户友好型 R 框架,“cito”将使这一有趣的模型类别更易于用于生态数据分析。“cito”的稳定版本可以从综合 R 存档网络(CRAN)安装。
英文摘要:
Deep Neural Networks (DNN) have become a central method in ecology. Most current deep learning (DL) applications rely on one of the major deep learning frameworks, in particular Torch or TensorFlow, to build and train DNN. Using these frameworks, however, requires substantially more experience and time than typical regression functions in the R environment. Here, we present 'cito', a user-friendly R package for DL that allows specifying DNNs in the familiar formula syntax used by many R packages. To fit the models, 'cito' uses 'torch', taking advantage of the numerically optimized torch library, including the ability to switch between training models on the CPU or the graphics processing unit (GPU) (which allows to efficiently train large DNN). Moreover, 'cito' includes many user-friendly functions for model plotting and analysis, including optional confidence intervals (CIs) based on bootstraps for predictions and explainable AI (xAI) metrics for effect sizes and variable importance with CIs and p-values. To showcase a typical analysis pipeline using 'cito', including its built-in xAI features to explore the trained DNN, we build a species distribution model of the African elephant. We hope that by providing a user-friendly R framework to specify, deploy and interpret DNN, 'cito' will make this interesting model class more accessible to ecological data analysis. A stable version of 'cito' can be installed from the comprehensive R archive network (CRAN).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。