Package: rTorch 0.4.3-9002

rTorch: R Bindings to 'PyTorch'

'R' implementation and interface of the Machine Learning platform 'PyTorch' <https://pytorch.org/> developed in 'Python'. It requires a 'conda' environment with 'torch' and 'torchvision' Python packages to provide 'PyTorch' functions, methods and classes. The key object in 'PyTorch' is the tensor which is in essence a multidimensional array. These tensors are fairly flexible in performing calculations in CPUs as well as 'GPUs' to accelerate tensor operations.

Authors:Alfonso R. Reyes [aut, cre, cph]

rTorch_0.4.3-9002.tar.gz
rTorch_0.4.3-9002.zip(r-4.5)rTorch_0.4.3-9002.zip(r-4.4)rTorch_0.4.3-9002.zip(r-4.3)
rTorch_0.4.3-9002.tgz(r-4.4-any)rTorch_0.4.3-9002.tgz(r-4.3-any)
rTorch_0.4.3-9002.tar.gz(r-4.5-noble)rTorch_0.4.3-9002.tar.gz(r-4.4-noble)
rTorch_0.4.3-9002.tgz(r-4.4-emscripten)rTorch_0.4.3-9002.tgz(r-4.3-emscripten)
rTorch.pdf |rTorch.html
rTorch/json (API)
NEWS

# Install 'rTorch' in R:
install.packages('rTorch', repos = c('https://f0nzie.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/f0nzie/rtorch/issues

On CRAN:

5.97 score 6 stars 157 scripts 172 downloads 35 exports 13 dependencies

Last updated 3 years agofrom:0010f675b7. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winNOTENov 03 2024
R-4.5-linuxNOTENov 03 2024
R-4.4-winNOTENov 03 2024
R-4.4-macNOTENov 03 2024
R-4.3-winOKNov 03 2024
R-4.3-macOKNov 03 2024

Exports:%.*%%**%%as%all_dimsarray_reshapeas_booleandataset_mnist_digitsdictimportimport_builtinsimport_from_pathinstall_pytorchis_tensoriter_nextiteratemake_copynpnp_arraypy_evalpy_get_itempy_lenpy_run_stringpy_to_rr_to_pyshapetorchtorch_configtorch_extract_optstorch_sizetorch_versiontorchvisiontupleuse_condaenvuse_pythonuse_virtualenv

Dependencies:herejsonlitelatticeMatrixpngrappdirsRcppRcppTOMLreticulaterlangrprojrootrstudioapiwithr

Installation

Rendered frominstallation.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2020-10-21
Started: 2020-09-13

Readme and manuals

Help Manual

Help pageTopics
Subtract two tensors-.torch.Tensor
Subset tensors with '['[.torch.Tensor
Tensor multiplication*.torch.Tensor
Divide two tensors/.torch.Tensor
#' @export "round.torch.Tensor" <- function(input) # round: Returns a new tensor with each of the elements of input rounded to the closest integer. torch$round(input) Dot product of two tensors%.*%
Matrix/Tensor multiplication of two tensors%**%
Remainder%%.torch.Tensor
Add two tensors+.torch.Tensor
Is a tensor less than another tensor<.torch.Tensor
Is a tensor less or equal than another tensor<=.torch.Tensor
Compares two tensors if equal==.torch.Tensor
A tensor greater than another tensor>.torch.Tensor
Is a tensor greater or equal than another tensor>=.torch.Tensor
All dimsall_dims
allall.torch.Tensor
anyany.torch.Tensor
Convert tensor to boolean typeas_boolean
MNIST database of handwritten digitsdataset_mnist_digits
Dimensions of a tensordim.torch.Tensor
Install PyTorch and its dependenciesinstall_pytorch
Is the object a tensoris_tensor
Length of a tensor.length.torch.Tensor
Logarithm of a tensor given the tensor and the baselog.torch.Tensor
Logarithm of a tensor in base 10log10.torch.Tensor
Logarithm of a tensor in base 2log2.torch.Tensor
Logical AND of two tensors&.torch.Tensor logical_and
Logical NOT of a tensor!.torch.Tensor logical_not
Logical OR of two tensorslogical_or |.torch.Tensor
Make copy of tensor, numpy array or R arraymake_copy
Compare two tensors if not equal!=.torch.Tensor not_equal_to
One tensor operationexp.torch.Tensor one_tensor_op
PyTorch for RrTorch
Tensor shapeshape
Two tensor operationstensor_ops ^.torch.Tensor
Main PyTorch modulenp torch torchvision
Tensor extract optionstorch_extract_opts
Size of a torch tensor objecttorch_size