rTorch
The goal of rTorch is providing an R wrapper to
PyTorch. rTorch provides all the functionality
of PyTorch plus all the features that R provides. We have borrowed some
ideas and code used in R
tensorflow to implement
rTorch.
Besides the module torch, which directly provides PyTorch methods,
classes and functions, the package also provides the modules numpy as
a method called np, and torchvision, as well. The dollar sign $
after the module will provide you access to all their sub-objects.
rTorch Examples
To lighten up the time in building this rTorch package, we moved the
examples that use tensor operations and neural networks to separate
repositories. There are two sets of examples:
- The rTorch Minimal Book at https://f0nzie.github.io/rtorch-minimal-book/
- rTorch Advanced Examples at https://github.com/f0nzie/rTorch.examples
rTorch installation
rTorch is available via CRAN and from GitHub.