-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheatsheet.Rmd
105 lines (69 loc) · 1.91 KB
/
cheatsheet.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
title: "torch cheatsheet"
output:
flexdashboard::flex_dashboard:
theme:
version: 4
bg: "white"
fg: "black"
primary: "#ED79F9"
base_font:
google: Prompt
code_font:
google: JetBrains Mono
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
# Install thematic and un-comment for themed static plots (i.e., ggplot2)
# thematic::thematic_rmd()
```
Column {data-width=250}
-----------------------------------------------------------------------
### Torch for R {data-height=500}
<div class="text-center">
```{r out.width="30%"}
knitr::include_graphics("https://torch.mlverse.org/css/images/hex/torch.png")
```
</div>
torch is a machine learning framework that helps accelerates the path from research prototyping to production deployment.
It is part of an ecosystem of packages to interface with specific dataset like
torchaudio for audio-like and torchvision for image-like data.
### Installation
The torch R package uses the C++ libtorch library. You can install the prerequisites directly from R.
```{r echo=TRUE, eval = FALSE}
install.packages("torch")
library(torch)
install_torch()
```
See `?install_torch` for GPU installation instructions.
See also the installation [page](https://torch.mlverse.org/docs/articles/installation.html).
### Components in torch {data-height=200}
torch has a modular API including the following compoenents:
- nn_modules
- datasets and dataloaders
Column {data-width=250}
-----------------------------------------------------------------------
### Chart C
```{r}
```
### Chart D
```{r}
```
Column {data-width=250}
-----------------------------------------------------------------------
### Chart C
```{r}
```
### Chart D
```{r}
```
Column {data-width=250}
-----------------------------------------------------------------------
### Chart C
```{r}
```
### Chart D
```{r}
```