The goal of rTorch.examples is to show practical examples developed with the package rTorch. The vignettes included here were initially part of rTorch, but I moved them to a sseparate package to speed up the proccess of building the more challenging and newer rTorch.

The examples, and vignettes, are simple applications of PyTorch that I found in the web. Some of the examples are just straight forward scripts with few PyTorch calls and random generated datasets; other examples are more ellaborated and require the creation of classes, and access to relatively heavy datasets.

Installation

You can install the released version of rTorch.examples from GitHub with:

devtools::install_github("f0nzie/rTorch.examples")

Examples included

  • Linear Algebra with Torch
  • Simple Linear Regression
  • Linear Regregression, rainfall
  • Linear Regregression, rainfall. PyTorch builtins
  • Two Layer Neural Network
  • Logistic Regression, MNIST digits
  • MNIST digits recognition, IDX format
  • MNIST digits recognition, PNG images
  • MNIST Fashion images. Inference and Validation

References