Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
3 of 48 committers (6.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.8%) to scientific vocabulary
Keywords
autograd
deep-learning
r
torch
Keywords from Contributors
interpretability
interactive
distributed
observability
fairness
visualisation
agents
unit-testing
langchain
standardization
Last synced: 6 months ago
·
JSON representation
Repository
R Interface to Torch
Basic Info
- Host: GitHub
- Owner: mlverse
- License: other
- Language: C++
- Default Branch: main
- Homepage: https://torch.mlverse.org
- Size: 140 MB
Statistics
- Stars: 544
- Watchers: 17
- Forks: 80
- Open Issues: 128
- Releases: 28
Topics
autograd
deep-learning
r
torch
Created about 6 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Changelog
Contributing
License
README.Rmd
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
torch::torch_manual_seed(1)
```
# torch
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://github.com/mlverse/torch/actions/workflows/main.yaml)
[](https://CRAN.R-project.org/package=torch)
[](https://cran.r-project.org/package=torch)
[](https://discord.com/invite/s3D5cKhBkx)
## Installation
torch can be installed from CRAN with:
```r
install.packages("torch")
```
You can also install the development version with:
```r
remotes::install_github("mlverse/torch")
```
At the first package load additional software will be
installed. See also the full [installation guide](https://torch.mlverse.org/docs/articles/installation.html) here.
## Examples
You can create torch tensors from R objects with the `torch_tensor` function and convert them back to R objects with `as_array`.
```{r}
library(torch)
x <- array(runif(8), dim = c(2, 2, 2))
y <- torch_tensor(x, dtype = torch_float64())
y
identical(x, as_array(y))
```
### Simple Autograd Example
In the following snippet we let torch, using the autograd feature, calculate the derivatives:
```{r}
x <- torch_tensor(1, requires_grad = TRUE)
w <- torch_tensor(2, requires_grad = TRUE)
b <- torch_tensor(3, requires_grad = TRUE)
y <- w * x + b
y$backward()
x$grad
w$grad
b$grad
```
## Contributing
No matter your current skills it's possible to contribute to `torch` development.
See the [contributing guide](https://torch.mlverse.org/docs/contributing) for more information.
Owner
- Name: mlverse
- Login: mlverse
- Kind: organization
- Repositories: 27
- Profile: https://github.com/mlverse
Open source libraries to scale Data Science
GitHub Events
Total
- Create event: 31
- Release event: 4
- Issues event: 100
- Watch event: 47
- Delete event: 26
- Issue comment event: 247
- Push event: 326
- Pull request review event: 29
- Pull request review comment event: 20
- Pull request event: 128
- Fork event: 23
Last Year
- Create event: 31
- Release event: 4
- Issues event: 100
- Watch event: 47
- Delete event: 26
- Issue comment event: 247
- Push event: 326
- Pull request review event: 29
- Pull request review comment event: 20
- Pull request event: 128
- Fork event: 23
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Daniel Falbel | d****l@g****m | 2,997 |
| Javier Luraschi | j****i@h****m | 389 |
| Hamada S. Badr | h****r@g****m | 98 |
| Sebastian Fischer | s****r@g****m | 79 |
| skeydan | k****a@g****e | 60 |
| Krzysztof Joachimiak | k****2@g****m | 51 |
| Sigrid Keydana | 4****n | 20 |
| C. Regouby | c****y@f****r | 19 |
| Christophe_Regouby | c****y@a****m | 14 |
| محمد الدسوقي | 3****0 | 12 |
| kevinykuo | k****o@g****m | 11 |
| rdinnager | r****e@g****m | 10 |
| Egill Fridgeirsson | e****x@g****m | 9 |
| Jonathan Bratt | j****t@m****m | 8 |
| dependabot[bot] | 4****] | 6 |
| Quyu Kong | k****u@g****m | 6 |
| Krzysztof Joachimiak | j****f@g****m | 6 |
| Dirk Schumacher | m****l@d****t | 6 |
| Yuhki Yano | i****n@k****p | 5 |
| GitHub Actions | a****s@g****m | 4 |
| Athos Damiani | a****i@g****m | 4 |
| shikokuchuo | 5****o | 3 |
| Daniel Falbel | d****l@f****m | 2 |
| Matthew T. Warkentin | m****n@m****a | 2 |
| mtkerbeR | 4****R | 2 |
| jwijffels | j****s@b****e | 2 |
| Yitao Li | y****o@r****m | 2 |
| Jon Harmon | j****k@g****m | 2 |
| Jacqueline Nolis | j****s | 2 |
| olivroy | 5****y | 1 |
| and 18 more... | ||
Committer Domains (Top 20 + Academic)
baker.edu.au: 1
american.edu: 1
west-inc.com: 1
rstudio.com: 1
bnosac.be: 1
mail.utoronto.ca: 1
fmail.com: 1
github.com: 1
keh.biglobe.ne.jp: 1
dirk-schumacher.net: 1
macmillan.com: 1
airbus.com: 1
free.fr: 1
gmx.de: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 225
- Total pull requests: 277
- Average time to close issues: about 2 months
- Average time to close pull requests: 13 days
- Total issue authors: 116
- Total pull request authors: 20
- Average comments per issue: 1.8
- Average comments per pull request: 0.62
- Merged pull requests: 220
- Bot issues: 0
- Bot pull requests: 24
Past Year
- Issues: 81
- Pull requests: 151
- Average time to close issues: 7 days
- Average time to close pull requests: 5 days
- Issue authors: 45
- Pull request authors: 14
- Average comments per issue: 0.86
- Average comments per pull request: 0.58
- Merged pull requests: 105
- Bot issues: 0
- Bot pull requests: 22
Top Authors
Issue Authors
- sebffischer (38)
- dfalbel (20)
- cregouby (8)
- MaximilianPi (7)
- egillax (6)
- tdhock (4)
- gavril0 (4)
- AGPatriota (4)
- edwardduanhao (3)
- GitHubGeniusOverlord (3)
- Athospd (3)
- dkibalnikov (2)
- Milardkh (2)
- lawremi (2)
- ralmond (2)
Pull Request Authors
- dfalbel (131)
- sebffischer (63)
- dependabot[bot] (24)
- cregouby (23)
- skeydan (6)
- shikokuchuo (4)
- CoreyGiles (4)
- johnnynunez (2)
- Prateek0xeo (2)
- ralmond (2)
- OJWatson (2)
- plato-12 (2)
- cyrusmsk (2)
- statist-bhfz (2)
- MaximilianPi (2)
Top Labels
Issue Labels
bug (2)
feature request (1)
CI (1)
Pull Request Labels
lantern (38)
dependencies (24)
github_actions (13)
Packages
- Total packages: 1
-
Total downloads:
- cran 7,881 last-month
- Total docker downloads: 20,558
- Total dependent packages: 29
- Total dependent repositories: 46
- Total versions: 28
- Total maintainers: 1
cran.r-project.org: torch
Tensors and Neural Networks with 'GPU' Acceleration
- Homepage: https://torch.mlverse.org/docs
- Documentation: http://cran.r-project.org/web/packages/torch/torch.pdf
- License: MIT + file LICENSE
-
Latest release: 0.16.0
published 6 months ago
Rankings
Stargazers count: 0.8%
Forks count: 1.0%
Dependent packages count: 2.6%
Dependent repos count: 3.7%
Average: 6.4%
Downloads: 6.4%
Docker downloads count: 23.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R6 * imports
- Rcpp * imports
- bit64 * imports
- callr * imports
- cli * imports
- coro >= 1.0.2 imports
- ellipsis * imports
- magrittr * imports
- methods * imports
- rlang * imports
- stats * imports
- tools * imports
- utils * imports
- withr * imports
- covr * suggests
- glue * suggests
- katex * suggests
- knitr >= 1.36 suggests
- mvtnorm * suggests
- numDeriv * suggests
- palmerpenguins * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
tools/torchgen/DESCRIPTION
cran
- dplyr * imports
- glue * imports
- magrittr * imports
- memoise * imports
- purrr * imports
- rlang * imports
- styler * imports
- tibble * imports
- yaml * imports
.github/actions/setup-r/action.yml
actions
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
.github/actions/upload-gcs/action.yml
actions
- google-github-actions/auth v1 composite
- google-github-actions/upload-cloud-storage v1 composite
.github/workflows/lantern.yaml
actions
- ./.github/actions/install-cudnn * composite
- ./.github/actions/upload-gcs * composite
- Jimver/cuda-toolkit v0.2.8 composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- jwlawson/actions-setup-cmake v1 composite
.github/workflows/main.yaml
actions
- ./.github/actions/setup-r * composite
- actions/checkout v3 composite
- actions/download-artifact v3 composite
- jwlawson/actions-setup-cmake v1 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/packaging.yaml
actions
- ./.github/actions/install-cudnn * composite
- ./.github/actions/setup-r * composite
- Jimver/cuda-toolkit v0.2.8 composite
- actions/checkout v3 composite
- google-github-actions/auth v1 composite
- google-github-actions/upload-cloud-storage v1 composite
- jwlawson/actions-setup-cmake v1 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/website.yaml
actions
- actions/checkout v2 composite
docker/build_env_tools/cuda-101/Dockerfile
docker
- nvidia/cuda 10.1-cudnn7-devel-ubuntu18.04 build
docker/build_env_tools/cuda-111/Dockerfile
docker
- nvidia/cuda 11.1-cudnn8-devel-ubuntu18.04 build