cito: An R package for training neural networks using torch

03/16/2023
by   Christian Amesoeder, et al.
8

1. Deep neural networks (DNN) have become a central class of algorithms for regression and classification tasks. Although some packages exist that allow users to specify DNN in R, those are rather limited in their functionality. Most current deep learning applications therefore rely on one of the major deep learning frameworks, PyTorch or TensorFlow, to build and train DNN. However, using these frameworks requires substantially more training and time than comparable regression or machine learning packages in the R environment. 2. Here, we present cito, an user-friendly R package for deep learning. cito allows R users to specify deep neural networks in the familiar formula syntax used by most modeling functions in R. In the background, cito uses torch to fit the models, taking advantage of all the numerical optimizations of the torch library, including the ability to switch between training models on CPUs or GPUs. Moreover, cito includes many user-friendly functions for predictions and an explainable Artificial Intelligence (xAI) pipeline for the fitted models. 3. We showcase a typical analysis pipeline using cito, including its built-in xAI features to explore the trained DNN, by building a species distribution model of the African elephant. 4. In conclusion, cito provides a user-friendly R framework to specify, deploy and interpret deep neural networks based on torch. The current stable CRAN version mainly supports fully connected DNNs, but it is planned that future versions will also include CNNs and RNNs.

READ FULL TEXT
research
04/06/2021

deepregression: a Flexible Neural Network Framework for Semi-Structured Deep Distributional Regression

This paper describes the implementation of semi-structured deep distribu...
research
09/18/2020

FuncNN: An R Package to Fit Deep Neural Networks Using Generalized Input Spaces

Neural networks have excelled at regression and classification problems ...
research
08/29/2019

InferPy: Probabilistic Modeling with Deep Neural Networks Made Easy

InferPy is a Python package for probabilistic modeling with deep neural ...
research
04/11/2018

DLL: A Blazing Fast Deep Neural Network Library

Deep Learning Library (DLL) is a new library for machine learning with d...
research
06/19/2023

Interpreting Deep Neural Networks with the Package innsight

The R package innsight offers a general toolbox for revealing variable-w...
research
11/01/2018

R friendly multi-threading in C++

Calling multi-threaded C++ code from R has its perils. Since the R inter...
research
06/05/2019

pCAMP: Performance Comparison of Machine Learning Packages on the Edges

Machine learning has changed the computing paradigm. Products today are ...

Please sign up or login with your details

Forgot password? Click here to reset