Package: mlr3torch 0.1.0

Sebastian Fischer

mlr3torch: Deep Learning with 'mlr3'

Deep Learning library that extends the mlr3 framework by building upon the 'torch' package. It allows to conveniently build, train, and evaluate deep learning models without having to worry about low level details. Custom architectures can be created using the graph language defined in 'mlr3pipelines'.

Authors:Sebastian Fischer [cre, aut], Bernd Bischl [ctb], Lukas Burk [ctb], Martin Binder [aut], Florian Pfisterer [ctb]

mlr3torch_0.1.0.tar.gz
mlr3torch_0.1.0.zip(r-4.5)mlr3torch_0.1.0.zip(r-4.4)mlr3torch_0.1.0.zip(r-4.3)
mlr3torch_0.1.0.tgz(r-4.4-any)mlr3torch_0.1.0.tgz(r-4.3-any)
mlr3torch_0.1.0.tar.gz(r-4.5-noble)mlr3torch_0.1.0.tar.gz(r-4.4-noble)
mlr3torch_0.1.0.tgz(r-4.4-emscripten)mlr3torch_0.1.0.tgz(r-4.3-emscripten)
mlr3torch.pdf |mlr3torch.html
mlr3torch/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/mlr-org/mlr3torch/issues

On CRAN:

data-sciencedeep-learningmachine-learningmlr3torch

145 exports 33 stars 3.03 score 39 dependencies 42 scripts 745 downloads

Last updated 2 months agofrom:d37da4418c (on v0.1.0). Checks:OK: 7. Indexed: no.

TargetResultDate
Doc / VignettesOKSep 06 2024
R-4.5-winOKSep 06 2024
R-4.5-linuxOKSep 06 2024
R-4.4-winOKSep 06 2024
R-4.4-macOKSep 06 2024
R-4.3-winOKSep 06 2024
R-4.3-macOKSep 06 2024

Exports:as_data_descriptoras_lazy_tensoras_torch_callbackas_torch_callbacksas_torch_lossas_torch_optimizerassert_lazy_tensorauto_devicebatchgetter_categbatchgetter_numcallback_setCallbackSetCallbackSetCheckpointCallbackSetHistoryCallbackSetProgressContextTorchDataBackendLazyDataDescriptoris_lazy_tensorlazy_tensorLearnerTorchLearnerTorchFeaturelessLearnerTorchImageLearnerTorchMLPLearnerTorchModelLearnerTorchTabResNetLearnerTorchVisionmaterializemlr3torch_callbacksmlr3torch_lossesmlr3torch_optimizersmodel_descriptor_to_learnermodel_descriptor_to_modulemodel_descriptor_unionModelDescriptornn_graphnn_merge_catnn_merge_prodnn_merge_sumnn_reshapenn_squeezenn_unsqueezepipeop_preproc_torchPipeOpModulePipeOpPreprocTorchAugmentCenterCropPipeOpPreprocTorchAugmentColorJitterPipeOpPreprocTorchAugmentCropPipeOpPreprocTorchAugmentHflipPipeOpPreprocTorchAugmentRandomAffinePipeOpPreprocTorchAugmentRandomChoicePipeOpPreprocTorchAugmentRandomCropPipeOpPreprocTorchAugmentRandomHorizontalFlipPipeOpPreprocTorchAugmentRandomOrderPipeOpPreprocTorchAugmentRandomResizedCropPipeOpPreprocTorchAugmentRandomVerticalFlipPipeOpPreprocTorchAugmentResizedCropPipeOpPreprocTorchAugmentRotatePipeOpPreprocTorchAugmentVflipPipeOpPreprocTorchTrafoAdjustBrightnessPipeOpPreprocTorchTrafoAdjustGammaPipeOpPreprocTorchTrafoAdjustHuePipeOpPreprocTorchTrafoAdjustSaturationPipeOpPreprocTorchTrafoGrayscalePipeOpPreprocTorchTrafoNopPipeOpPreprocTorchTrafoNormalizePipeOpPreprocTorchTrafoPadPipeOpPreprocTorchTrafoReshapePipeOpPreprocTorchTrafoResizePipeOpPreprocTorchTrafoRgbToGrayscalePipeOpTaskPreprocTorchPipeOpTorchPipeOpTorchAvgPool1DPipeOpTorchAvgPool2DPipeOpTorchAvgPool3DPipeOpTorchBatchNorm1DPipeOpTorchBatchNorm2DPipeOpTorchBatchNorm3DPipeOpTorchBlockPipeOpTorchCallbacksPipeOpTorchCELUPipeOpTorchConv1DPipeOpTorchConv2DPipeOpTorchConv3DPipeOpTorchConvTranspose1DPipeOpTorchConvTranspose2DPipeOpTorchConvTranspose3DPipeOpTorchDropoutPipeOpTorchELUPipeOpTorchFlattenPipeOpTorchGELUPipeOpTorchGLUPipeOpTorchHardShrinkPipeOpTorchHardSigmoidPipeOpTorchHardTanhPipeOpTorchHeadPipeOpTorchIngressPipeOpTorchIngressCategoricalPipeOpTorchIngressLazyTensorPipeOpTorchIngressNumericPipeOpTorchLayerNormPipeOpTorchLeakyReLUPipeOpTorchLinearPipeOpTorchLogSigmoidPipeOpTorchLossPipeOpTorchMaxPool1DPipeOpTorchMaxPool2DPipeOpTorchMaxPool3DPipeOpTorchMergePipeOpTorchMergeCatPipeOpTorchMergeProdPipeOpTorchMergeSumPipeOpTorchModelPipeOpTorchModelClassifPipeOpTorchModelRegrPipeOpTorchOptimizerPipeOpTorchPReLUPipeOpTorchReLUPipeOpTorchReLU6PipeOpTorchReshapePipeOpTorchRReLUPipeOpTorchSELUPipeOpTorchSigmoidPipeOpTorchSoftmaxPipeOpTorchSoftPlusPipeOpTorchSoftShrinkPipeOpTorchSoftSignPipeOpTorchSqueezePipeOpTorchTanhPipeOpTorchTanhShrinkPipeOpTorchThresholdPipeOpTorchUnsqueezereplace_headt_clbkt_clbkst_losst_lossest_optt_optstask_datasettorch_callbackTorchCallbackTorchDescriptorTorchIngressTokenTorchLossTorchOptimizer

Dependencies:backportsbitbit64callrcheckmateclicodetoolscorodata.tabledescdigestellipsisevaluatefuturefuture.applyglobalsgluejsonlitelgrlistenvmagrittrmlbenchmlr3mlr3measuresmlr3miscmlr3pipelinespalmerpenguinsparadoxparallellyprocessxPRROCpsR6Rcpprlangsafetensorstorchuuidwithr

Readme and manuals

Help Manual

Help pageTopics
mlr3torch: Deep Learning with 'mlr3'mlr3torch-package mlr3torch
Convert to Data Descriptoras_data_descriptor
Convert to Lazy Tensoras_lazy_tensor as_lazy_tensor.dataset
Convert to a TorchCallbackas_torch_callback
Convert to a list of Torch Callbacksas_torch_callbacks
Convert to TorchLossas_torch_loss
Convert to TorchOptimizeras_torch_optimizer
Assert Lazy Tensorassert_lazy_tensor
Auto Deviceauto_device
Batchgetter for Categorical databatchgetter_categ
Batchgetter for Numeric Databatchgetter_num
Create a Set of Callbacks for Torchcallback_set
Data DescriptorDataDescriptor
Check for lazy tensoris_lazy_tensor
Create a lazy tensorlazy_tensor
Materialize Lazy Tensor Columnsmaterialize materialize.list
Lazy Data BackendDataBackendLazy mlr_backends_lazy
Base Class for CallbacksCallbackSet mlr_callback_set
Checkpoint CallbackCallbackSetCheckpoint mlr_callback_set.checkpoint
History CallbackCallbackSetHistory mlr_callback_set.history
Progress CallbackCallbackSetProgress mlr_callback_set.progress
Context for Torch LearnerContextTorch mlr_context_torch
Base Class for Torch LearnersLearnerTorch mlr_learners_torch
Image LearnerLearnerTorchImage mlr_learners_torch_image
Learner Torch ModelLearnerTorchModel mlr_learners_torch_model
My Little PonyLearnerTorchMLP mlr_learners.mlp
Tabular ResNetLearnerTorchTabResNet mlr_learners.tab_resnet
Featureless Torch LearnerLearnerTorchFeatureless mlr_learners.torch_featureless
AlexNet Image ClassifierLearnerTorchVision mlr_learners.torchvision
Class for Torch Module Wrappersmlr_pipeops_module PipeOpModule
1D Average Poolingmlr_pipeops_nn_avg_pool1d PipeOpTorchAvgPool1D
2D Average Poolingmlr_pipeops_nn_avg_pool2d PipeOpTorchAvgPool2D
3D Average Poolingmlr_pipeops_nn_avg_pool3d PipeOpTorchAvgPool3D
1D Batch Normalizationmlr_pipeops_nn_batch_norm1d PipeOpTorchBatchNorm1D
2D Batch Normalizationmlr_pipeops_nn_batch_norm2d PipeOpTorchBatchNorm2D
3D Batch Normalizationmlr_pipeops_nn_batch_norm3d PipeOpTorchBatchNorm3D
Block Repetitionmlr_pipeops_nn_block PipeOpTorchBlock
CELU Activation Functionmlr_pipeops_nn_celu PipeOpTorchCELU
Transpose 1D Convolutionmlr_pipeops_nn_conv_transpose1d PipeOpTorchConvTranspose1D
Transpose 2D Convolutionmlr_pipeops_nn_conv_transpose2d PipeOpTorchConvTranspose2D
Transpose 3D Convolutionmlr_pipeops_nn_conv_transpose3d PipeOpTorchConvTranspose3D
1D Convolutionmlr_pipeops_nn_conv1d PipeOpTorchConv1D
2D Convolutionmlr_pipeops_nn_conv2d PipeOpTorchConv2D
3D Convolutionmlr_pipeops_nn_conv3d PipeOpTorchConv3D
Dropoutmlr_pipeops_nn_dropout PipeOpTorchDropout
ELU Activation Functionmlr_pipeops_nn_elu PipeOpTorchELU
Flattens a Tensormlr_pipeops_nn_flatten PipeOpTorchFlatten
GELU Activation Functionmlr_pipeops_nn_gelu PipeOpTorchGELU
GLU Activation Functionmlr_pipeops_nn_glu PipeOpTorchGLU
Hard Shrink Activation Functionmlr_pipeops_nn_hardshrink PipeOpTorchHardShrink
Hard Sigmoid Activation Functionmlr_pipeops_nn_hardsigmoid PipeOpTorchHardSigmoid
Hard Tanh Activation Functionmlr_pipeops_nn_hardtanh PipeOpTorchHardTanh
Output Headmlr_pipeops_nn_head PipeOpTorchHead
Layer Normalizationmlr_pipeops_nn_layer_norm PipeOpTorchLayerNorm
Leaky ReLU Activation Functionmlr_pipeops_nn_leaky_relu PipeOpTorchLeakyReLU
Linear Layermlr_pipeops_nn_linear PipeOpTorchLinear
Log Sigmoid Activation Functionmlr_pipeops_nn_log_sigmoid PipeOpTorchLogSigmoid
1D Max Poolingmlr_pipeops_nn_max_pool1d PipeOpTorchMaxPool1D
2D Max Poolingmlr_pipeops_nn_max_pool2d PipeOpTorchMaxPool2D
3D Max Poolingmlr_pipeops_nn_max_pool3d PipeOpTorchMaxPool3D
Merge Operationmlr_pipeops_nn_merge PipeOpTorchMerge
Merge by Concatenationmlr_pipeops_nn_merge_cat PipeOpTorchMergeCat
Merge by Productmlr_pipeops_nn_merge_prod PipeOpTorchMergeProd
Merge by Summationmlr_pipeops_nn_merge_sum PipeOpTorchMergeSum
PReLU Activation Functionmlr_pipeops_nn_prelu PipeOpTorchPReLU
ReLU Activation Functionmlr_pipeops_nn_relu PipeOpTorchReLU
ReLU6 Activation Functionmlr_pipeops_nn_relu6 PipeOpTorchReLU6
Reshape a Tensormlr_pipeops_nn_reshape PipeOpTorchReshape
RReLU Activation Functionmlr_pipeops_nn_rrelu PipeOpTorchRReLU
SELU Activation Functionmlr_pipeops_nn_selu PipeOpTorchSELU
Sigmoid Activation Functionmlr_pipeops_nn_sigmoid PipeOpTorchSigmoid
Softmaxmlr_pipeops_nn_softmax PipeOpTorchSoftmax
SoftPlus Activation Functionmlr_pipeops_nn_softplus PipeOpTorchSoftPlus
Soft Shrink Activation Functionmlr_pipeops_nn_softshrink PipeOpTorchSoftShrink
SoftSign Activation Functionmlr_pipeops_nn_softsign PipeOpTorchSoftSign
Squeeze a Tensormlr_pipeops_nn_squeeze PipeOpTorchSqueeze PipeOpTorchUnsqueeze
Tanh Activation Functionmlr_pipeops_nn_tanh PipeOpTorchTanh
Tanh Shrink Activation Functionmlr_pipeops_nn_tanhshrink PipeOpTorchTanhShrink
Treshold Activation Functionmlr_pipeops_nn_threshold PipeOpTorchThreshold
Base Class for Lazy Tensor Preprocessingmlr_pipeops_preproc_torch PipeOpTaskPreprocTorch
PipeOpPreprocTorchAugmentCenterCropmlr_pipeops_preproc_torch.augment_center_crop PipeOpPreprocTorchAugmentCenterCrop
PipeOpPreprocTorchAugmentColorJittermlr_pipeops_preproc_torch.augment_color_jitter PipeOpPreprocTorchAugmentColorJitter
PipeOpPreprocTorchAugmentCropmlr_pipeops_preproc_torch.augment_crop PipeOpPreprocTorchAugmentCrop
PipeOpPreprocTorchAugmentHflipmlr_pipeops_preproc_torch.augment_hflip PipeOpPreprocTorchAugmentHflip
PipeOpPreprocTorchAugmentRandomAffinemlr_pipeops_preproc_torch.augment_random_affine PipeOpPreprocTorchAugmentRandomAffine
PipeOpPreprocTorchAugmentRandomChoicemlr_pipeops_preproc_torch.augment_random_choice PipeOpPreprocTorchAugmentRandomChoice
PipeOpPreprocTorchAugmentRandomCropmlr_pipeops_preproc_torch.augment_random_crop PipeOpPreprocTorchAugmentRandomCrop
PipeOpPreprocTorchAugmentRandomHorizontalFlipmlr_pipeops_preproc_torch.augment_random_horizontal_flip PipeOpPreprocTorchAugmentRandomHorizontalFlip
PipeOpPreprocTorchAugmentRandomOrdermlr_pipeops_preproc_torch.augment_random_order PipeOpPreprocTorchAugmentRandomOrder
PipeOpPreprocTorchAugmentRandomResizedCropmlr_pipeops_preproc_torch.augment_random_resized_crop PipeOpPreprocTorchAugmentRandomResizedCrop
PipeOpPreprocTorchAugmentRandomVerticalFlipmlr_pipeops_preproc_torch.augment_random_vertical_flip PipeOpPreprocTorchAugmentRandomVerticalFlip
PipeOpPreprocTorchAugmentResizedCropmlr_pipeops_preproc_torch.augment_resized_crop PipeOpPreprocTorchAugmentResizedCrop
PipeOpPreprocTorchAugmentRotatemlr_pipeops_preproc_torch.augment_rotate PipeOpPreprocTorchAugmentRotate
PipeOpPreprocTorchAugmentVflipmlr_pipeops_preproc_torch.augment_vflip PipeOpPreprocTorchAugmentVflip
PipeOpPreprocTorchTrafoAdjustBrightnessmlr_pipeops_preproc_torch.trafo_adjust_brightness PipeOpPreprocTorchTrafoAdjustBrightness
PipeOpPreprocTorchTrafoAdjustGammamlr_pipeops_preproc_torch.trafo_adjust_gamma PipeOpPreprocTorchTrafoAdjustGamma
PipeOpPreprocTorchTrafoAdjustHuemlr_pipeops_preproc_torch.trafo_adjust_hue PipeOpPreprocTorchTrafoAdjustHue
PipeOpPreprocTorchTrafoAdjustSaturationmlr_pipeops_preproc_torch.trafo_adjust_saturation PipeOpPreprocTorchTrafoAdjustSaturation
PipeOpPreprocTorchTrafoGrayscalemlr_pipeops_preproc_torch.trafo_grayscale PipeOpPreprocTorchTrafoGrayscale
PipeOpPreprocTorchTrafoNopmlr_pipeops_preproc_torch.trafo_nop PipeOpPreprocTorchTrafoNop
PipeOpPreprocTorchTrafoNormalizemlr_pipeops_preproc_torch.trafo_normalize PipeOpPreprocTorchTrafoNormalize
PipeOpPreprocTorchTrafoPadmlr_pipeops_preproc_torch.trafo_pad PipeOpPreprocTorchTrafoPad
PipeOpPreprocTorchTrafoReshapemlr_pipeops_preproc_torch.trafo_reshape PipeOpPreprocTorchTrafoReshape
PipeOpPreprocTorchTrafoResizemlr_pipeops_preproc_torch.trafo_resize PipeOpPreprocTorchTrafoResize
PipeOpPreprocTorchTrafoRgbToGrayscalemlr_pipeops_preproc_torch.trafo_rgb_to_grayscale PipeOpPreprocTorchTrafoRgbToGrayscale
Base Class for Torch Module Constructor Wrappersmlr_pipeops_torch PipeOpTorch
Callback Configurationmlr_pipeops_torch_callbacks PipeOpTorchCallbacks
Entrypoint to Torch Networkmlr_pipeops_torch_ingress PipeOpTorchIngress
Torch Entry Point for Categorical Featuresmlr_pipeops_torch_ingress_categ PipeOpTorchIngressCategorical
Ingress for Lazy Tensormlr_pipeops_torch_ingress_ltnsr PipeOpTorchIngressLazyTensor
Torch Entry Point for Numeric Featuresmlr_pipeops_torch_ingress_num PipeOpTorchIngressNumeric
Loss Configurationmlr_pipeops_torch_loss PipeOpTorchLoss
PipeOp Torch Modelmlr_pipeops_torch_model PipeOpTorchModel
PipeOp Torch Classifiermlr_pipeops_torch_model_classif PipeOpTorchModelClassif
Torch Regression Modelmlr_pipeops_torch_model_regr PipeOpTorchModelRegr
Optimizer Configurationmlr_pipeops_torch_optimizer PipeOpTorchOptimizer
Iris Classification Taskmlr_tasks_lazy_iris
MNIST Image classificationmlr_tasks_mnist
Tiny ImageNet Classification Taskmlr_tasks_tiny_imagenet
Dictionary of Torch Callbacksmlr3torch_callbacks
Loss Functionsmlr3torch_losses
Optimizersmlr3torch_optimizers
Create a Torch Learner from a ModelDescriptormodel_descriptor_to_learner
Create a nn_graph from ModelDescriptormodel_descriptor_to_module
Union of ModelDescriptorsmodel_descriptor_union
Represent a Model with Meta-InfoModelDescriptor
Graph Networknn_graph
Concatenates multiple tensorsnn_merge_cat
Product of multiple tensorsnn_merge_prod
Sum of multiple tensorsnn_merge_sum
Reshapenn_reshape
Squeezenn_squeeze
Unsqueezenn_unsqueeze
Create Torch Preprocessing PipeOpspipeop_preproc_torch
Sugar Function for Torch Callbackt_clbk t_clbks
Loss Function Quick Accesst_loss t_losses
Optimizers Quick Accesst_opt t_opts
Create a Dataset from a Tasktask_dataset
Create a Callback Desctiptortorch_callback
Torch CallbackTorchCallback
Base Class for Torch DescriptorsTorchDescriptor
Torch Ingress TokenTorchIngressToken
Torch LossTorchLoss
Torch OptimizerTorchOptimizer