diff --git a/dev/LICENSE.html b/dev/LICENSE.html index a15d3201..42cf717c 100644 --- a/dev/LICENSE.html +++ b/dev/LICENSE.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -121,7 +121,7 @@ 6. Revis diff --git a/dev/articles/callbacks.html b/dev/articles/callbacks.html index ab5a627c..cc47d4ba 100644 --- a/dev/articles/callbacks.html +++ b/dev/articles/callbacks.html @@ -30,7 +30,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -225,7 +225,7 @@ Writing a Custom Logger## load_state_dict: function (state_dict) ## on_before_valid: function () ## on_batch_end: function () -## Parent env: <environment: 0x55cd3f83ada0> +## Parent env: <environment: 0x55b1cec63428> ## Locked objects: FALSE ## Locked class: FALSE ## Portable: TRUE @@ -240,9 +240,12 @@ Using the Custom Loggertask = tsk("iris") mlp = lrn("classif.mlp", callbacks = custom_logger, cb.custom_logger.alpha = 0.05, - epochs = 5, batch_size = 64, neurons = 20) - -mlp$train(task) + epochs = 5, batch_size = 64, neurons = 20) +## Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +## Learner$initialize argument 'data_formats' is deprecated and will be removed in +## the future. + +mlp$train(task) ## Epoch 1: 1.22 ## Epoch 2: 1.27 ## Epoch 3: 1.48 @@ -250,7 +253,7 @@ Using the Custom Logger## Epoch 5: 1.09 The information that is returnede by state_dict() is now accessible via the Learner’s $model-slot: - + mlp$model$callbacks$custom_logger ## [1] 1.090038 @@ -265,7 +268,7 @@ Using the Custom Logger diff --git a/dev/articles/get_started.html b/dev/articles/get_started.html index 1bcb3bc7..14bd2afc 100644 --- a/dev/articles/get_started.html +++ b/dev/articles/get_started.html @@ -30,7 +30,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -132,6 +132,9 @@ Quickstart# training arguments batch_size = 32, epochs = 30, device = "cpu" ) +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. mlp #> <LearnerTorchMLP[regr]:regr.mlp>: My Little Powny #> * Model: - @@ -162,7 +165,7 @@ Quickstart# Compute the mse prediction$score(msr("regr.mse")) #> regr.mse -#> 152.5175 +#> 283.838 Configuring a Learner @@ -221,7 +224,7 @@ Loss #> <ParamSet(1)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: reduction ParamFct NA NA 2 mean +#> 1: reduction ParamFct NA NA 2 mean [NULL] The wrapped loss module generator is accessible through the slot $generator. @@ -235,7 +238,7 @@ Loss #> clone: function (deep = FALSE, ..., replace_values = TRUE) #> Private: #> .__clone_r6__: function (deep = FALSE) -#> Parent env: <environment: 0x558c2b6c0e38> +#> Parent env: <environment: 0x55d8b28bbac0> #> Locked objects: FALSE #> Locked class: FALSE #> Portable: TRUE @@ -279,11 +282,11 @@ Optimizer#> <ParamSet(5)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: lr ParamDbl 0 Inf Inf <NoDefault[0]> -#> 2: momentum ParamDbl 0 1 Inf 0 -#> 3: dampening ParamDbl 0 1 Inf 0 -#> 4: weight_decay ParamDbl 0 1 Inf 0 -#> 5: nesterov ParamLgl NA NA 2 FALSE +#> 1: lr ParamDbl 0 Inf Inf <NoDefault[0]> [NULL] +#> 2: momentum ParamDbl 0 1 Inf 0 [NULL] +#> 3: dampening ParamDbl 0 1 Inf 0 [NULL] +#> 4: weight_decay ParamDbl 0 1 Inf 0 [NULL] +#> 5: nesterov ParamLgl NA NA 2 FALSE [NULL] The wrapped torch optimizer can be accessed through the slot generator. Parameters of TorchOptimizer (but also @@ -404,22 +407,22 @@ Putting it Together prediction_custom$score(msr("regr.mae")) #> regr.mae -#> 9.904111 +#> 7.122375 prediction$score(msr("regr.mae")) #> regr.mae -#> 10.03284 +#> 15.27983 Because we configured the learner to use the history callback, we can find the validation history in its $model slot: head(mlp_custom$model$callbacks$history$valid) #> epoch regr.mae #> <num> <num> -#> 1: 1 1.048699e+05 -#> 2: 2 2.500048e+06 -#> 3: 3 6.342546e+02 -#> 4: 4 1.688923e+04 -#> 5: 5 8.859892e+01 -#> 6: 6 9.095035e+00 +#> 1: 1 1.777395e+04 +#> 2: 2 3.955504e+08 +#> 3: 3 1.143863e+04 +#> 4: 4 1.792927e+01 +#> 5: 5 1.759594e+01 +#> 6: 6 1.726260e+01 The plot below shows it for the epochs 6 to 30. Other important information that is stored in the @@ -439,7 +442,7 @@ Putting it Together - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/articles/get_started_files/figure-html/unnamed-chunk-21-1.png b/dev/articles/get_started_files/figure-html/unnamed-chunk-21-1.png index e4fa5a73..f86ab99f 100644 Binary files a/dev/articles/get_started_files/figure-html/unnamed-chunk-21-1.png and b/dev/articles/get_started_files/figure-html/unnamed-chunk-21-1.png differ diff --git a/dev/articles/index.html b/dev/articles/index.html index 4caa3f80..672a8dec 100644 --- a/dev/articles/index.html +++ b/dev/articles/index.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -71,7 +71,7 @@ All vignettes diff --git a/dev/articles/internals_pipeop_torch.html b/dev/articles/internals_pipeop_torch.html index 2a45fdab..469d894c 100644 --- a/dev/articles/internals_pipeop_torch.html +++ b/dev/articles/internals_pipeop_torch.html @@ -30,7 +30,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -104,8 +104,8 @@ A torch Primerinput = torch_randn(2, 3) input #> torch_tensor -#> 1.5612 -0.1634 0.5539 -#> -0.8951 -0.0944 0.7828 +#> -1.1263 -0.2750 0.1469 +#> 0.7665 -0.6567 -0.6270 #> [ CPUFloatType{2,3} ] A nn_module is constructed from a nn_module_generator. nn_linear is one of the @@ -117,8 +117,8 @@ A torch Primeroutput = module_1(input) output #> torch_tensor -#> -0.4563 1.0173 -1.2857 0.8549 -#> 0.5453 0.4362 -0.0467 0.6911 +#> -0.6934 -0.3296 0.3733 0.6186 +#> -0.5825 0.3068 0.1848 0.2139 #> [ CPUFloatType{2,4} ][ grad_fn = <AddmmBackward0> ] A neural network with one (4-unit) hidden layer and two outputs needs the following ingredients @@ -134,8 +134,8 @@ A torch Primeroutput = softmax(output) output #> torch_tensor -#> 0.3595 0.1750 0.4655 -#> 0.3147 0.2049 0.4804 +#> 0.3541 0.2318 0.4141 +#> 0.3512 0.2295 0.4192 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ] We will now continue with showing how such a neural network can be represented in mlr3torch. @@ -170,8 +170,8 @@ Neural Networks as Graphsoutput = po_module_1$train(list(input))[[1]] output #> torch_tensor -#> -0.4563 1.0173 -1.2857 0.8549 -#> 0.5453 0.4362 -0.0467 0.6911 +#> -0.6934 -0.3296 0.3733 0.6186 +#> -0.5825 0.3068 0.1848 0.2139 #> [ CPUFloatType{2,4} ][ grad_fn = <AddmmBackward0> ] Note we only use the $train(), since torch modules do not have anything that maps to the state (it is filled by @@ -196,8 +196,8 @@ Neural Networks as Graphsoutput = module_graph$train(input)[[1]] output #> torch_tensor -#> 0.3595 0.1750 0.4655 -#> 0.3147 0.2049 0.4804 +#> 0.3541 0.2318 0.4141 +#> 0.3512 0.2295 0.4192 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ] While this object allows to easily perform a forward pass, it does not inherit from nn_module, which is useful for various @@ -245,8 +245,8 @@ Neural Networks as Graphs graph_module(input) #> torch_tensor -#> 0.3595 0.1750 0.4655 -#> 0.3147 0.2049 0.4804 +#> 0.3541 0.2318 0.4141 +#> 0.3512 0.2295 0.4192 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ] @@ -363,8 +363,8 @@ small_module(input) #> torch_tensor -#> 0.2903 0.0797 0.7936 0.6433 -#> 0.5134 0.1129 -0.2912 0.0373 +#> -0.4086 0.7016 0.4665 0.2500 +#> 0.7144 -0.1423 -0.0009 -0.0322 #> [ CPUFloatType{2,4} ][ grad_fn = <AddmmBackward0> ] @@ -429,9 +429,9 @@ Using ModelDescriptor to small_module(batch$x[[1]]) #> torch_tensor -#> -0.6000 -0.0907 -3.2907 -2.5021 -#> -0.6455 0.0358 -2.9293 -2.3050 -#> -0.5391 -0.0499 -2.9819 -2.2716 +#> -0.3231 -0.4640 -0.9871 -4.7204 +#> -0.2236 -0.4092 -0.9509 -4.4400 +#> -0.2774 -0.4124 -0.9025 -4.3677 #> [ CPUFloatType{3,4} ][ grad_fn = <AddmmBackward0> ] @@ -457,8 +457,8 @@ Building sequential NNs graph_module(input) #> torch_tensor -#> 0.2391 0.3274 0.4335 -#> 0.2437 0.3964 0.3599 +#> 0.2230 0.4703 0.3068 +#> 0.2366 0.4849 0.2785 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ] @@ -673,14 +673,14 @@ Building more interesting NNs) #> $lin_out.output #> torch_tensor -#> 1.6780 -#> 1.5608 +#> -2.1484 +#> -1.9847 #> [ CPUFloatType{2,1} ][ grad_fn = <AddmmBackward0> ] #> #> $nn_softmax.output #> torch_tensor -#> 0.8405 0.0299 0.1296 -#> 0.8231 0.0389 0.1379 +#> 0.2693 0.6901 0.0406 +#> 0.2766 0.6756 0.0478 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ] The first linear layer that takes “Sepal” input ("linear1") creates a 2x4 tensor (batch size 2, 4 units), @@ -689,14 +689,14 @@ Building more interesting NNsiris_module$graph$pipeops$linear1$.result #> $output #> torch_tensor -#> 5.8692 -1.0796 2.7315 1.3624 -#> 5.4316 -0.8592 2.5895 1.3687 +#> -4.3762 5.2375 -1.1008 3.3186 +#> -4.0450 4.8316 -1.0146 3.0328 #> [ CPUFloatType{2,4} ][ grad_fn = <AddmmBackward0> ] iris_module$graph$pipeops$linear3$.result #> $output #> torch_tensor -#> 0.6945 -0.1225 -0.1268 1.0471 0.9879 -#> 0.6945 -0.1225 -0.1268 1.0471 0.9879 +#> 0.4509 0.0311 -0.9702 -0.2419 -0.2263 +#> 0.4509 0.0311 -0.9702 -0.2419 -0.2263 #> [ CPUFloatType{2,5} ][ grad_fn = <AddmmBackward0> ] We observe that the po("nn_merge_cat") concatenates these, as expected: @@ -704,8 +704,8 @@ Building more interesting NNsiris_module$graph$pipeops$nn_merge_cat$.result #> $output #> torch_tensor -#> 5.8692 -1.0796 2.7315 1.3624 0.6945 -0.1225 -0.1268 1.0471 0.9879 -#> 5.4316 -0.8592 2.5895 1.3687 0.6945 -0.1225 -0.1268 1.0471 0.9879 +#> -4.3762 5.2375 -1.1008 3.3186 0.4509 0.0311 -0.9702 -0.2419 -0.2263 +#> -4.0450 4.8316 -1.0146 3.0328 0.4509 0.0311 -0.9702 -0.2419 -0.2263 #> [ CPUFloatType{2,9} ][ grad_fn = <CatBackward0> ] @@ -771,6 +771,9 @@ callbacks = history, loss = xe ) +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. lr_sequential #> <LearnerTorchModel[classif]:classif.model>: Torch Model @@ -1035,7 +1038,7 @@ Mixed Pipelines diff --git a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-37-1.png b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-37-1.png index 794404dd..b3d842c5 100644 Binary files a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-37-1.png and b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-37-1.png differ diff --git a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-42-1.png b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-42-1.png index e487addb..b1c270a7 100644 Binary files a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-42-1.png and b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-42-1.png differ diff --git a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-46-1.png b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-46-1.png index 0c2af715..ebb08fc0 100644 Binary files a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-46-1.png and b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-46-1.png differ diff --git a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-48-1.png b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-48-1.png index ff46e5df..a8eb719a 100644 Binary files a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-48-1.png and b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-48-1.png differ diff --git a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-50-1.png b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-50-1.png index 6f29b401..2922de58 100644 Binary files a/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-50-1.png and b/dev/articles/internals_pipeop_torch_files/figure-html/unnamed-chunk-50-1.png differ diff --git a/dev/articles/lazy_tensor.html b/dev/articles/lazy_tensor.html index 92aa88f6..2d0d1818 100644 --- a/dev/articles/lazy_tensor.html +++ b/dev/articles/lazy_tensor.html @@ -30,7 +30,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -102,6 +102,9 @@ library(mlr3torch) mnist = tsk("mnist") +#> Warning in warn_deprecated("DataBackend$initialize argument 'data_formats'"): +#> DataBackend$initialize argument 'data_formats' is deprecated and will be +#> removed in the future. mnist #> <TaskClassif:mnist> (70000 x 2): MNIST Digit Classification #> * Target: label @@ -119,6 +122,11 @@ mnist$head() #> Processing... #> Done! +#> Warning in warn_deprecated("DataBackend$data_formats"): +#> DataBackend$data_formats is deprecated and will be removed in the future. +#> Warning in warn_deprecated("DataBackendDataTable$data argument 'data_format'"): +#> DataBackendDataTable$data argument 'data_format' is deprecated and will be +#> removed in the future. #> label image #> <fctr> <lazy_tensor> #> 1: 5 <tnsr[1x28x28]> @@ -154,6 +162,9 @@ neurons = c(100, 100), epochs = 10, batch_size = 32 ) +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. mlp #> <LearnerTorchMLP[classif]:classif.mlp>: My Little Powny #> * Model: - @@ -386,7 +397,7 @@ Digging Into Internals#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,1)] #> * input_map: (x) -> Graph -#> * pointer: nop.e73617.x.output +#> * pointer: nop.75bcd5.x.output #> * shape: [(NA,1)] The printed output of the data descriptor informs us about: @@ -433,7 +444,7 @@ Digging Into Internals#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,1)] #> * input_map: (x) -> Graph -#> * pointer: nop.e73617.x.output +#> * pointer: nop.75bcd5.x.output #> * shape: [(NA,1)] What happens during materialize(lt[1]) is the following: @@ -483,8 +494,8 @@ Digging Into Internals#> Graph with 2 PipeOps: #> ID State sccssors prdcssors #> <char> <char> <char> <char> -#> nop.e73617.x <list> poly.x -#> poly.x <<UNTRAINED>> nop.e73617.x +#> nop.75bcd5.x <list> poly.x +#> poly.x <<UNTRAINED>> nop.75bcd5.x We see that the $graph has a new pipeop with id "poly.x" and the output pointer points to poly.x. Also we see that the shape of the tensor is now @@ -508,7 +519,7 @@ Digging Into Internals diff --git a/dev/articles/pipeop_torch.html b/dev/articles/pipeop_torch.html index b19838ea..3765c06d 100644 --- a/dev/articles/pipeop_torch.html +++ b/dev/articles/pipeop_torch.html @@ -30,7 +30,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -97,6 +97,9 @@ library(mlr3torch) imagenet = tsk("tiny_imagenet") +#> Warning in warn_deprecated("DataBackend$initialize argument 'data_formats'"): +#> DataBackend$initialize argument 'data_formats' is deprecated and will be +#> removed in the future. imagenet #> <TaskClassif:tiny_imagenet> (110000 x 2): ImageNet Subset #> * Target: class @@ -175,6 +178,9 @@ t_clbk("checkpoint", freq = 20, path = checkpoint)) %>>% po("torch_model_classif", batch_size = 32, epochs = 100L, device = "cuda") +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. cnn = as_learner(architecture) cnn$id = "cnn" @@ -211,7 +217,7 @@ diff --git a/dev/authors.html b/dev/authors.html index 316d9db5..c3f40046 100644 --- a/dev/authors.html +++ b/dev/authors.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,13 +79,13 @@ Citation Fischer S, Binder M (2024). mlr3torch: Deep Learning with 'mlr3'. -R package version 0.1.0-9000, https://github.com/mlr-org/mlr3torch/, https://mlr3torch.mlr-org.com/. +R package version 0.1.1-9000, https://github.com/mlr-org/mlr3torch/, https://mlr3torch.mlr-org.com/. @Manual{, title = {mlr3torch: Deep Learning with 'mlr3'}, author = {Sebastian Fischer and Martin Binder}, year = {2024}, - note = {R package version 0.1.0-9000, https://github.com/mlr-org/mlr3torch/}, + note = {R package version 0.1.1-9000, https://github.com/mlr-org/mlr3torch/}, url = {https://mlr3torch.mlr-org.com/}, } @@ -99,7 +99,7 @@ Citation diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTN1OVgaY.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTN1OVgaY.woff2 index aef48986..3d61ccaa 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTN1OVgaY.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTN1OVgaY.woff2 differ diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNFOVgaY.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNFOVgaY.woff2 index 095292db..9d97c9b7 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNFOVgaY.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNFOVgaY.woff2 differ diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNVOVgaY.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNVOVgaY.woff2 index 11931974..2e5dab08 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNVOVgaY.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNVOVgaY.woff2 differ diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOVOVgaY.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOVOVgaY.woff2 index ada16a62..da7ab5f3 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOVOVgaY.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOVOVgaY.woff2 differ diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2 index c3f046fc..58588733 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2 differ diff --git a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTPlOVgaY.woff2 b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTPlOVgaY.woff2 index 6d1cd6ae..f60f0bd1 100644 Binary files a/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTPlOVgaY.woff2 and b/dev/deps/JetBrains_Mono-0.4.9/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTPlOVgaY.woff2 differ diff --git a/dev/index.html b/dev/index.html index d576ad72..0fd087e7 100644 --- a/dev/index.html +++ b/dev/index.html @@ -33,7 +33,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -312,7 +312,7 @@ Dev status diff --git a/dev/news/index.html b/dev/news/index.html index 845a6fd6..3540f3c1 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -49,11 +49,20 @@ Source: NEWS.md + +mlr3torch 0.1.1CRAN release: 2024-09-12 +fix(preprocessing): regarding the construction of some PipeOps such as po("trafo_resize") which failed in some cases. +fix(ci): tests were not run in the CI +fix(learner): LearnerTabResnet now works correctly +Fix that tests were not run in the CI +feat: added the nn() helper function to simplify the creation of neural network layers + mlr3torch 0.1.0CRAN release: 2024-07-08 Initial CRAN release - + diff --git a/dev/pkgdown.js b/dev/pkgdown.js index 9757bf9e..1a99c65f 100644 --- a/dev/pkgdown.js +++ b/dev/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 0e9f06e8..48ef716b 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -1,5 +1,5 @@ pandoc: 3.1.11 -pkgdown: 2.1.0 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: articles/callbacks: callbacks.html @@ -7,7 +7,7 @@ articles: articles/internals_pipeop_torch: internals_pipeop_torch.html articles/lazy_tensor: lazy_tensor.html articles/pipeop_torch: pipeop_torch.html -last_built: 2024-08-22T14:57Z +last_built: 2024-10-07T11:36Z urls: reference: https://mlr3torch.mlr-org.com/reference article: https://mlr3torch.mlr-org.com/articles diff --git a/dev/reference/DataDescriptor.html b/dev/reference/DataDescriptor.html index 1242e1e6..43eb1aca 100644 --- a/dev/reference/DataDescriptor.html +++ b/dev/reference/DataDescriptor.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -263,14 +263,14 @@ Examples#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,3,3)] #> * input_map: (x) -> Graph -#> * pointer: nop.4f0852.x.output +#> * pointer: nop.c94e5b.x.output #> * shape: [(NA,3,3)] # is the same as using the converter: as_data_descriptor(ds, list(x = c(NA, 3, 3))) #> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,3,3)] #> * input_map: (x) -> Graph -#> * pointer: nop.4f0852.x.output +#> * pointer: nop.c94e5b.x.output #> * shape: [(NA,3,3)] @@ -283,7 +283,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/ModelDescriptor.html b/dev/reference/ModelDescriptor.html index 5370873a..73bacce1 100644 --- a/dev/reference/ModelDescriptor.html +++ b/dev/reference/ModelDescriptor.html @@ -37,7 +37,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -192,7 +192,7 @@ See also diff --git a/dev/reference/PipeOpPreprocTorchAugmentCenterCrop.html b/dev/reference/PipeOpPreprocTorchAugmentCenterCrop.html index 264a5367..ad7dd5a7 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentCenterCrop.html +++ b/dev/reference/PipeOpPreprocTorchAugmentCenterCrop.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentColorJitter.html b/dev/reference/PipeOpPreprocTorchAugmentColorJitter.html index c9a61168..336bbbc3 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentColorJitter.html +++ b/dev/reference/PipeOpPreprocTorchAugmentColorJitter.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentCrop.html b/dev/reference/PipeOpPreprocTorchAugmentCrop.html index b328b4c5..f80f1e6e 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentCrop.html +++ b/dev/reference/PipeOpPreprocTorchAugmentCrop.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentHflip.html b/dev/reference/PipeOpPreprocTorchAugmentHflip.html index 45110635..0875f993 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentHflip.html +++ b/dev/reference/PipeOpPreprocTorchAugmentHflip.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomAffine.html b/dev/reference/PipeOpPreprocTorchAugmentRandomAffine.html index a726e989..9f17a8c7 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomAffine.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomAffine.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomChoice.html b/dev/reference/PipeOpPreprocTorchAugmentRandomChoice.html index 948bcef6..02e7ae0b 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomChoice.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomChoice.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomCrop.html b/dev/reference/PipeOpPreprocTorchAugmentRandomCrop.html index 34de8a6c..559c6d3e 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomCrop.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomCrop.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomHorizontalFlip.html b/dev/reference/PipeOpPreprocTorchAugmentRandomHorizontalFlip.html index 9c84eb74..4d3013c7 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomHorizontalFlip.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomHorizontalFlip.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomOrder.html b/dev/reference/PipeOpPreprocTorchAugmentRandomOrder.html index edbd8007..1e57e4ce 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomOrder.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomOrder.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomResizedCrop.html b/dev/reference/PipeOpPreprocTorchAugmentRandomResizedCrop.html index 26abb7d5..021d10de 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomResizedCrop.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomResizedCrop.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRandomVerticalFlip.html b/dev/reference/PipeOpPreprocTorchAugmentRandomVerticalFlip.html index d60cbaf1..6fb2f67c 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRandomVerticalFlip.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRandomVerticalFlip.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentResizedCrop.html b/dev/reference/PipeOpPreprocTorchAugmentResizedCrop.html index cdb2d20a..9d8ed924 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentResizedCrop.html +++ b/dev/reference/PipeOpPreprocTorchAugmentResizedCrop.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentRotate.html b/dev/reference/PipeOpPreprocTorchAugmentRotate.html index d06d8cc8..9d7e70ec 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentRotate.html +++ b/dev/reference/PipeOpPreprocTorchAugmentRotate.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchAugmentVflip.html b/dev/reference/PipeOpPreprocTorchAugmentVflip.html index 754a06d7..f62a8631 100644 --- a/dev/reference/PipeOpPreprocTorchAugmentVflip.html +++ b/dev/reference/PipeOpPreprocTorchAugmentVflip.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoAdjustBrightness.html b/dev/reference/PipeOpPreprocTorchTrafoAdjustBrightness.html index 1e3d9807..6c043182 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoAdjustBrightness.html +++ b/dev/reference/PipeOpPreprocTorchTrafoAdjustBrightness.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoAdjustGamma.html b/dev/reference/PipeOpPreprocTorchTrafoAdjustGamma.html index 53a108c5..7ab865b1 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoAdjustGamma.html +++ b/dev/reference/PipeOpPreprocTorchTrafoAdjustGamma.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoAdjustHue.html b/dev/reference/PipeOpPreprocTorchTrafoAdjustHue.html index b5dc9c22..1bcebc51 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoAdjustHue.html +++ b/dev/reference/PipeOpPreprocTorchTrafoAdjustHue.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoAdjustSaturation.html b/dev/reference/PipeOpPreprocTorchTrafoAdjustSaturation.html index 913a1ebb..6d8c46f3 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoAdjustSaturation.html +++ b/dev/reference/PipeOpPreprocTorchTrafoAdjustSaturation.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoGrayscale.html b/dev/reference/PipeOpPreprocTorchTrafoGrayscale.html index f40e762c..530cc390 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoGrayscale.html +++ b/dev/reference/PipeOpPreprocTorchTrafoGrayscale.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoNop.html b/dev/reference/PipeOpPreprocTorchTrafoNop.html index 85ebaa68..6f4b09a3 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoNop.html +++ b/dev/reference/PipeOpPreprocTorchTrafoNop.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -68,7 +68,7 @@ Format< diff --git a/dev/reference/PipeOpPreprocTorchTrafoNormalize.html b/dev/reference/PipeOpPreprocTorchTrafoNormalize.html index 3fb5e047..dba8ce7e 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoNormalize.html +++ b/dev/reference/PipeOpPreprocTorchTrafoNormalize.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoPad.html b/dev/reference/PipeOpPreprocTorchTrafoPad.html index 47d64da6..7fbc8510 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoPad.html +++ b/dev/reference/PipeOpPreprocTorchTrafoPad.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoReshape.html b/dev/reference/PipeOpPreprocTorchTrafoReshape.html index c17e7593..8659576b 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoReshape.html +++ b/dev/reference/PipeOpPreprocTorchTrafoReshape.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoResize.html b/dev/reference/PipeOpPreprocTorchTrafoResize.html index 012361a0..afe6df4e 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoResize.html +++ b/dev/reference/PipeOpPreprocTorchTrafoResize.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/PipeOpPreprocTorchTrafoRgbToGrayscale.html b/dev/reference/PipeOpPreprocTorchTrafoRgbToGrayscale.html index f7ddf4f5..b90e1e63 100644 --- a/dev/reference/PipeOpPreprocTorchTrafoRgbToGrayscale.html +++ b/dev/reference/PipeOpPreprocTorchTrafoRgbToGrayscale.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -79,7 +79,7 @@ Parameters - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/TorchCallback.html b/dev/reference/TorchCallback.html index c2278750..34c24da9 100644 --- a/dev/reference/TorchCallback.html +++ b/dev/reference/TorchCallback.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -198,9 +198,9 @@ Examples#> <ParamSet(3)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: path ParamUty NA NA Inf <NoDefault[0]> -#> 2: freq ParamUty NA NA Inf <NoDefault[0]> -#> 3: freq_type ParamUty NA NA Inf <NoDefault[0]> +#> 1: path ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 2: freq ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 3: freq_type ParamUty NA NA Inf <NoDefault[0]> [NULL] # Retrieve a torch callback from the dictionary torch_callback = t_clbk("checkpoint", @@ -209,7 +209,7 @@ Examplestorch_callback #> <TorchCallback:checkpoint> Checkpoint #> * Generator: CallbackSetCheckpoint -#> * Parameters: path=/tmp/RtmphkOjXP/file1a55cce22c3, freq=1 +#> * Parameters: path=/tmp/Rtmp4a2vlb/file1ad576ba4a5b, freq=1 #> * Packages: mlr3torch,torch torch_callback$label #> [1] "Checkpoint" @@ -233,6 +233,7 @@ Examples # Use in a learner learner = lrn("regr.mlp", callbacks = t_clbk("checkpoint")) +#> Warning: Learner$initialize argument 'data_formats' is deprecated and will be removed in the future. # the parameters of the callback are added to the learner's parameter set learner$param_set #> <ParamSetCollection(35)> @@ -252,7 +253,7 @@ Examples#> 12: sampler ParamUty NA NA Inf <NoDefault[0]> #> 13: batch_sampler ParamUty NA NA Inf <NoDefault[0]> #> 14: num_workers ParamInt 0e+00 Inf Inf 0 -#> 15: collate_fn ParamUty NA NA Inf +#> 15: collate_fn ParamUty NA NA Inf [NULL] #> 16: pin_memory ParamLgl NA NA 2 FALSE #> 17: drop_last ParamLgl NA NA 2 FALSE #> 18: timeout ParamDbl -Inf Inf Inf -1 @@ -276,7 +277,7 @@ Examples#> id class lower upper nlevels default #> value #> <list> -#> 1: +#> 1: [NULL] #> 2: auto #> 3: 1 #> 4: random @@ -285,32 +286,32 @@ Examples#> 7: <list[0]> #> 8: 0 #> 9: 0 -#> 10: -#> 11: -#> 12: -#> 13: -#> 14: -#> 15: -#> 16: -#> 17: -#> 18: -#> 19: -#> 20: -#> 21: +#> 10: [NULL] +#> 11: [NULL] +#> 12: [NULL] +#> 13: [NULL] +#> 14: [NULL] +#> 15: [NULL] +#> 16: [NULL] +#> 17: [NULL] +#> 18: [NULL] +#> 19: [NULL] +#> 20: [NULL] +#> 21: [NULL] #> 22: #> 23: 0.5 #> 24: <nn_relu[1]> #> 25: <list[0]> -#> 26: -#> 27: -#> 28: -#> 29: -#> 30: -#> 31: -#> 32: -#> 33: -#> 34: -#> 35: +#> 26: [NULL] +#> 27: [NULL] +#> 28: [NULL] +#> 29: [NULL] +#> 30: [NULL] +#> 31: [NULL] +#> 32: [NULL] +#> 33: [NULL] +#> 34: [NULL] +#> 35: [NULL] #> value @@ -323,7 +324,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/TorchDescriptor.html b/dev/reference/TorchDescriptor.html index 159aa94b..8855b0be 100644 --- a/dev/reference/TorchDescriptor.html +++ b/dev/reference/TorchDescriptor.html @@ -15,7 +15,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -256,7 +256,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/TorchIngressToken.html b/dev/reference/TorchIngressToken.html index 13287a5a..8c0bd683 100644 --- a/dev/reference/TorchIngressToken.html +++ b/dev/reference/TorchIngressToken.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -166,7 +166,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/TorchLoss.html b/dev/reference/TorchLoss.html index 30333632..9ad764d1 100644 --- a/dev/reference/TorchLoss.html +++ b/dev/reference/TorchLoss.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -224,7 +224,7 @@ Examples#> <ParamSet(1)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: reduction ParamUty NA NA Inf <NoDefault[0]> +#> 1: reduction ParamUty NA NA Inf <NoDefault[0]> [NULL] # Retrieve a loss from the dictionary: torch_loss = t_loss("mse", reduction = "mean") @@ -265,7 +265,7 @@ Examples#> <ParamSetCollection(32)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: epochs ParamInt 0e+00 Inf Inf <NoDefault[0]> +#> 1: epochs ParamInt 0e+00 Inf Inf <NoDefault[0]> [NULL] #> 2: device ParamFct NA NA 12 <NoDefault[0]> auto #> 3: num_threads ParamInt 1e+00 Inf Inf <NoDefault[0]> 1 #> 4: seed ParamInt -Inf Inf Inf <NoDefault[0]> random @@ -274,29 +274,29 @@ Examples#> 7: measures_valid ParamUty NA NA Inf <NoDefault[0]> <list[0]> #> 8: patience ParamInt 0e+00 Inf Inf <NoDefault[0]> 0 #> 9: min_delta ParamDbl 0e+00 Inf Inf <NoDefault[0]> 0 -#> 10: batch_size ParamInt 1e+00 Inf Inf <NoDefault[0]> -#> 11: shuffle ParamLgl NA NA 2 FALSE -#> 12: sampler ParamUty NA NA Inf <NoDefault[0]> -#> 13: batch_sampler ParamUty NA NA Inf <NoDefault[0]> -#> 14: num_workers ParamInt 0e+00 Inf Inf 0 -#> 15: collate_fn ParamUty NA NA Inf -#> 16: pin_memory ParamLgl NA NA 2 FALSE -#> 17: drop_last ParamLgl NA NA 2 FALSE -#> 18: timeout ParamDbl -Inf Inf Inf -1 -#> 19: worker_init_fn ParamUty NA NA Inf <NoDefault[0]> -#> 20: worker_globals ParamUty NA NA Inf <NoDefault[0]> -#> 21: worker_packages ParamUty NA NA Inf <NoDefault[0]> +#> 10: batch_size ParamInt 1e+00 Inf Inf <NoDefault[0]> [NULL] +#> 11: shuffle ParamLgl NA NA 2 FALSE [NULL] +#> 12: sampler ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 13: batch_sampler ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 14: num_workers ParamInt 0e+00 Inf Inf 0 [NULL] +#> 15: collate_fn ParamUty NA NA Inf [NULL] [NULL] +#> 16: pin_memory ParamLgl NA NA 2 FALSE [NULL] +#> 17: drop_last ParamLgl NA NA 2 FALSE [NULL] +#> 18: timeout ParamDbl -Inf Inf Inf -1 [NULL] +#> 19: worker_init_fn ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 20: worker_globals ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 21: worker_packages ParamUty NA NA Inf <NoDefault[0]> [NULL] #> 22: neurons ParamUty NA NA Inf <NoDefault[0]> #> 23: p ParamDbl 0e+00 1e+00 Inf <NoDefault[0]> 0.5 #> 24: activation ParamUty NA NA Inf <NoDefault[0]> <nn_relu[1]> #> 25: activation_args ParamUty NA NA Inf <NoDefault[0]> <list[0]> -#> 26: shape ParamUty NA NA Inf <NoDefault[0]> -#> 27: opt.lr ParamDbl 0e+00 Inf Inf 0.001 -#> 28: opt.betas ParamUty NA NA Inf 0.900,0.999 -#> 29: opt.eps ParamDbl 1e-16 1e-04 Inf 1e-08 -#> 30: opt.weight_decay ParamDbl 0e+00 1e+00 Inf 0 -#> 31: opt.amsgrad ParamLgl NA NA 2 FALSE -#> 32: loss.reduction ParamFct NA NA 2 mean +#> 26: shape ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 27: opt.lr ParamDbl 0e+00 Inf Inf 0.001 [NULL] +#> 28: opt.betas ParamUty NA NA Inf 0.900,0.999 [NULL] +#> 29: opt.eps ParamDbl 1e-16 1e-04 Inf 1e-08 [NULL] +#> 30: opt.weight_decay ParamDbl 0e+00 1e+00 Inf 0 [NULL] +#> 31: opt.amsgrad ParamLgl NA NA 2 FALSE [NULL] +#> 32: loss.reduction ParamFct NA NA 2 mean [NULL] #> id class lower upper nlevels default value @@ -309,7 +309,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/TorchOptimizer.html b/dev/reference/TorchOptimizer.html index 8f3460bc..6d119931 100644 --- a/dev/reference/TorchOptimizer.html +++ b/dev/reference/TorchOptimizer.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -213,11 +213,11 @@ Examples#> <ParamSet(5)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: lr ParamUty NA NA Inf <NoDefault[0]> -#> 2: betas ParamUty NA NA Inf <NoDefault[0]> -#> 3: eps ParamUty NA NA Inf <NoDefault[0]> -#> 4: weight_decay ParamUty NA NA Inf <NoDefault[0]> -#> 5: amsgrad ParamUty NA NA Inf <NoDefault[0]> +#> 1: lr ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 2: betas ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 3: eps ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 4: weight_decay ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 5: amsgrad ParamUty NA NA Inf <NoDefault[0]> [NULL] # open the help page of the wrapped optimizer # torch_opt$help() @@ -234,10 +234,10 @@ Examples#> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> #> 1: lr ParamDbl 0 Inf Inf <NoDefault[0]> 0.1 -#> 2: momentum ParamDbl 0 1 Inf 0 -#> 3: dampening ParamDbl 0 1 Inf 0 -#> 4: weight_decay ParamDbl 0 1 Inf 0 -#> 5: nesterov ParamLgl NA NA 2 FALSE +#> 2: momentum ParamDbl 0 1 Inf 0 [NULL] +#> 3: dampening ParamDbl 0 1 Inf 0 [NULL] +#> 4: weight_decay ParamDbl 0 1 Inf 0 [NULL] +#> 5: nesterov ParamLgl NA NA 2 FALSE [NULL] torch_opt$label #> [1] "Stochastic Gradient Descent" torch_opt$id @@ -272,7 +272,7 @@ Examples#> <ParamSetCollection(32)> #> id class lower upper nlevels default value #> <char> <char> <num> <num> <num> <list> <list> -#> 1: epochs ParamInt 0 Inf Inf <NoDefault[0]> +#> 1: epochs ParamInt 0 Inf Inf <NoDefault[0]> [NULL] #> 2: device ParamFct NA NA 12 <NoDefault[0]> auto #> 3: num_threads ParamInt 1 Inf Inf <NoDefault[0]> 1 #> 4: seed ParamInt -Inf Inf Inf <NoDefault[0]> random @@ -281,29 +281,29 @@ Examples#> 7: measures_valid ParamUty NA NA Inf <NoDefault[0]> <list[0]> #> 8: patience ParamInt 0 Inf Inf <NoDefault[0]> 0 #> 9: min_delta ParamDbl 0 Inf Inf <NoDefault[0]> 0 -#> 10: batch_size ParamInt 1 Inf Inf <NoDefault[0]> -#> 11: shuffle ParamLgl NA NA 2 FALSE -#> 12: sampler ParamUty NA NA Inf <NoDefault[0]> -#> 13: batch_sampler ParamUty NA NA Inf <NoDefault[0]> -#> 14: num_workers ParamInt 0 Inf Inf 0 -#> 15: collate_fn ParamUty NA NA Inf -#> 16: pin_memory ParamLgl NA NA 2 FALSE -#> 17: drop_last ParamLgl NA NA 2 FALSE -#> 18: timeout ParamDbl -Inf Inf Inf -1 -#> 19: worker_init_fn ParamUty NA NA Inf <NoDefault[0]> -#> 20: worker_globals ParamUty NA NA Inf <NoDefault[0]> -#> 21: worker_packages ParamUty NA NA Inf <NoDefault[0]> +#> 10: batch_size ParamInt 1 Inf Inf <NoDefault[0]> [NULL] +#> 11: shuffle ParamLgl NA NA 2 FALSE [NULL] +#> 12: sampler ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 13: batch_sampler ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 14: num_workers ParamInt 0 Inf Inf 0 [NULL] +#> 15: collate_fn ParamUty NA NA Inf [NULL] [NULL] +#> 16: pin_memory ParamLgl NA NA 2 FALSE [NULL] +#> 17: drop_last ParamLgl NA NA 2 FALSE [NULL] +#> 18: timeout ParamDbl -Inf Inf Inf -1 [NULL] +#> 19: worker_init_fn ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 20: worker_globals ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 21: worker_packages ParamUty NA NA Inf <NoDefault[0]> [NULL] #> 22: neurons ParamUty NA NA Inf <NoDefault[0]> #> 23: p ParamDbl 0 1 Inf <NoDefault[0]> 0.5 #> 24: activation ParamUty NA NA Inf <NoDefault[0]> <nn_relu[1]> #> 25: activation_args ParamUty NA NA Inf <NoDefault[0]> <list[0]> -#> 26: shape ParamUty NA NA Inf <NoDefault[0]> -#> 27: opt.lr ParamDbl 0 Inf Inf <NoDefault[0]> -#> 28: opt.momentum ParamDbl 0 1 Inf 0 -#> 29: opt.dampening ParamDbl 0 1 Inf 0 -#> 30: opt.weight_decay ParamDbl 0 1 Inf 0 -#> 31: opt.nesterov ParamLgl NA NA 2 FALSE -#> 32: loss.reduction ParamFct NA NA 2 mean +#> 26: shape ParamUty NA NA Inf <NoDefault[0]> [NULL] +#> 27: opt.lr ParamDbl 0 Inf Inf <NoDefault[0]> [NULL] +#> 28: opt.momentum ParamDbl 0 1 Inf 0 [NULL] +#> 29: opt.dampening ParamDbl 0 1 Inf 0 [NULL] +#> 30: opt.weight_decay ParamDbl 0 1 Inf 0 [NULL] +#> 31: opt.nesterov ParamLgl NA NA 2 FALSE [NULL] +#> 32: loss.reduction ParamFct NA NA 2 mean [NULL] #> id class lower upper nlevels default value @@ -316,7 +316,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/as_data_descriptor.html b/dev/reference/as_data_descriptor.html index bd347c56..bfbfa7a8 100644 --- a/dev/reference/as_data_descriptor.html +++ b/dev/reference/as_data_descriptor.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -93,7 +93,7 @@ Examples#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,4)] #> * input_map: (x) -> Graph -#> * pointer: nop.3bc4d6.x.output +#> * pointer: nop.20ecd6.x.output #> * shape: [(NA,4)] # if the dataset has a .getbatch method, the shapes are inferred @@ -106,7 +106,7 @@ Examples#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,4)] #> * input_map: (x) -> Graph -#> * pointer: nop.f1a219.x.output +#> * pointer: nop.a65bed.x.output #> * shape: [(NA,4)] @@ -119,7 +119,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/as_lazy_tensor.html b/dev/reference/as_lazy_tensor.html index 452729c5..561856de 100644 --- a/dev/reference/as_lazy_tensor.html +++ b/dev/reference/as_lazy_tensor.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -143,7 +143,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/as_torch_callback.html b/dev/reference/as_torch_callback.html index 593384f7..d372d54e 100644 --- a/dev/reference/as_torch_callback.html +++ b/dev/reference/as_torch_callback.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -106,7 +106,7 @@ See also diff --git a/dev/reference/as_torch_callbacks.html b/dev/reference/as_torch_callbacks.html index 573073c1..fd3854c1 100644 --- a/dev/reference/as_torch_callbacks.html +++ b/dev/reference/as_torch_callbacks.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -118,7 +118,7 @@ See also diff --git a/dev/reference/as_torch_loss.html b/dev/reference/as_torch_loss.html index 5039cfbd..ec7e79f6 100644 --- a/dev/reference/as_torch_loss.html +++ b/dev/reference/as_torch_loss.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -108,7 +108,7 @@ See also diff --git a/dev/reference/as_torch_optimizer.html b/dev/reference/as_torch_optimizer.html index 30a9ad5f..32d4dcd7 100644 --- a/dev/reference/as_torch_optimizer.html +++ b/dev/reference/as_torch_optimizer.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -109,7 +109,7 @@ See also diff --git a/dev/reference/assert_lazy_tensor.html b/dev/reference/assert_lazy_tensor.html index 0b9e6616..065d5bc3 100644 --- a/dev/reference/assert_lazy_tensor.html +++ b/dev/reference/assert_lazy_tensor.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -78,7 +78,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/auto_device.html b/dev/reference/auto_device.html index 0c069080..1a11025f 100644 --- a/dev/reference/auto_device.html +++ b/dev/reference/auto_device.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -78,7 +78,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/batchgetter_categ.html b/dev/reference/batchgetter_categ.html index 37456b82..b8e462e0 100644 --- a/dev/reference/batchgetter_categ.html +++ b/dev/reference/batchgetter_categ.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -90,7 +90,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/batchgetter_num.html b/dev/reference/batchgetter_num.html index 25a95cfa..701e6d4d 100644 --- a/dev/reference/batchgetter_num.html +++ b/dev/reference/batchgetter_num.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -90,7 +90,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/callback_set.html b/dev/reference/callback_set.html index 0169a06d..8bb088e2 100644 --- a/dev/reference/callback_set.html +++ b/dev/reference/callback_set.html @@ -15,7 +15,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -175,7 +175,7 @@ See also diff --git a/dev/reference/equals-.lazy_tensor.html b/dev/reference/equals-.lazy_tensor.html index 81bf362a..ba9b6237 100644 --- a/dev/reference/equals-.lazy_tensor.html +++ b/dev/reference/equals-.lazy_tensor.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -91,7 +91,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/index.html b/dev/reference/index.html index d65400ba..0d619140 100644 --- a/dev/reference/index.html +++ b/dev/reference/index.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -1108,7 +1108,7 @@ Helper< diff --git a/dev/reference/is_lazy_tensor.html b/dev/reference/is_lazy_tensor.html index a7e0e40f..93174392 100644 --- a/dev/reference/is_lazy_tensor.html +++ b/dev/reference/is_lazy_tensor.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -78,7 +78,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/lazy_tensor.html b/dev/reference/lazy_tensor.html index dca9d0fa..7f73073d 100644 --- a/dev/reference/lazy_tensor.html +++ b/dev/reference/lazy_tensor.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -94,7 +94,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/materialize.html b/dev/reference/materialize.html index e888c592..e5ac349b 100644 --- a/dev/reference/materialize.html +++ b/dev/reference/materialize.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -132,86 +132,86 @@ Exampleslt1 = as_lazy_tensor(torch_randn(10, 3)) materialize(lt1, rbind = TRUE) #> torch_tensor -#> 0.5493 -0.5515 -0.5812 -#> -1.2274 0.8850 -0.0685 -#> -0.1044 -0.7159 0.1187 -#> -0.7307 -0.7775 0.9271 -#> -0.7786 0.4380 -0.4887 -#> -0.2497 -0.4458 -0.4004 -#> -0.2404 0.9826 0.1626 -#> -0.5319 -1.7876 0.2970 -#> -1.0201 0.7622 0.8252 -#> 0.4119 0.1936 -1.7774 +#> 0.7826 0.9021 -0.3734 +#> -0.1509 1.2695 -1.4460 +#> -0.4803 -0.3497 -1.1911 +#> 0.6350 -1.0374 0.6134 +#> 1.4071 0.2895 -2.0563 +#> 0.3326 -0.2041 0.8140 +#> 0.4219 -0.1421 -0.2484 +#> -0.3052 -0.5527 1.2542 +#> -0.7892 -1.4757 -0.2113 +#> -0.0047 0.0414 1.5259 #> [ CPUFloatType{10,3} ] materialize(lt1, rbind = FALSE) #> [[1]] #> torch_tensor -#> 0.5493 -#> -0.5515 -#> -0.5812 +#> 0.7826 +#> 0.9021 +#> -0.3734 #> [ CPUFloatType{3} ] #> #> [[2]] #> torch_tensor -#> -1.2274 -#> 0.8850 -#> -0.0685 +#> -0.1509 +#> 1.2695 +#> -1.4460 #> [ CPUFloatType{3} ] #> #> [[3]] #> torch_tensor -#> -0.1044 -#> -0.7159 -#> 0.1187 +#> -0.4803 +#> -0.3497 +#> -1.1911 #> [ CPUFloatType{3} ] #> #> [[4]] #> torch_tensor -#> -0.7307 -#> -0.7775 -#> 0.9271 +#> 0.6350 +#> -1.0374 +#> 0.6134 #> [ CPUFloatType{3} ] #> #> [[5]] #> torch_tensor -#> -0.7786 -#> 0.4380 -#> -0.4887 +#> 1.4071 +#> 0.2895 +#> -2.0563 #> [ CPUFloatType{3} ] #> #> [[6]] #> torch_tensor -#> -0.2497 -#> -0.4458 -#> -0.4004 +#> 0.3326 +#> -0.2041 +#> 0.8140 #> [ CPUFloatType{3} ] #> #> [[7]] #> torch_tensor -#> -0.2404 -#> 0.9826 -#> 0.1626 +#> 0.4219 +#> -0.1421 +#> -0.2484 #> [ CPUFloatType{3} ] #> #> [[8]] #> torch_tensor -#> -0.5319 -#> -1.7876 -#> 0.2970 +#> -0.3052 +#> -0.5527 +#> 1.2542 #> [ CPUFloatType{3} ] #> #> [[9]] #> torch_tensor -#> -1.0201 -#> 0.7622 -#> 0.8252 +#> -0.7892 +#> -1.4757 +#> -0.2113 #> [ CPUFloatType{3} ] #> #> [[10]] #> torch_tensor -#> 0.4119 -#> 0.1936 -#> -1.7774 +#> -0.0047 +#> 0.0414 +#> 1.5259 #> [ CPUFloatType{3} ] #> lt2 = as_lazy_tensor(torch_randn(10, 4)) @@ -219,184 +219,184 @@ Examplesmaterialize(d, rbind = TRUE) #> $lt1 #> torch_tensor -#> 0.5493 -0.5515 -0.5812 -#> -1.2274 0.8850 -0.0685 -#> -0.1044 -0.7159 0.1187 -#> -0.7307 -0.7775 0.9271 -#> -0.7786 0.4380 -0.4887 -#> -0.2497 -0.4458 -0.4004 -#> -0.2404 0.9826 0.1626 -#> -0.5319 -1.7876 0.2970 -#> -1.0201 0.7622 0.8252 -#> 0.4119 0.1936 -1.7774 +#> 0.7826 0.9021 -0.3734 +#> -0.1509 1.2695 -1.4460 +#> -0.4803 -0.3497 -1.1911 +#> 0.6350 -1.0374 0.6134 +#> 1.4071 0.2895 -2.0563 +#> 0.3326 -0.2041 0.8140 +#> 0.4219 -0.1421 -0.2484 +#> -0.3052 -0.5527 1.2542 +#> -0.7892 -1.4757 -0.2113 +#> -0.0047 0.0414 1.5259 #> [ CPUFloatType{10,3} ] #> #> $lt2 #> torch_tensor -#> 0.0377 -0.0322 -1.0237 0.6420 -#> 1.5552 0.5489 0.1991 -1.0462 -#> 1.1983 -1.2508 -0.1582 -0.0274 -#> 0.2271 -1.7810 0.2622 -0.4218 -#> 0.4619 0.5835 0.6739 -0.2246 -#> 0.5479 -0.4525 1.1257 0.9266 -#> -0.5428 0.2070 -0.5259 -1.1674 -#> -0.5740 0.2678 -1.0389 -0.2550 -#> -0.4178 0.4700 -1.5360 0.6578 -#> 0.4972 0.8935 1.1799 -0.1597 +#> 0.1728 -1.7401 0.6610 1.7411 +#> -0.4639 -0.3019 -1.3339 -0.2104 +#> -0.9944 0.5949 -1.0769 0.9698 +#> -0.9466 -1.6516 -0.8122 -0.0687 +#> -0.2945 -0.1360 -1.3794 -2.0543 +#> -0.8444 -1.8168 0.5025 -0.5932 +#> 0.3098 -2.3293 0.6917 0.4684 +#> -0.4623 -0.0945 -0.7702 -2.9021 +#> -1.8322 1.7678 -1.5651 2.0952 +#> -0.2700 0.7575 1.9979 0.0179 #> [ CPUFloatType{10,4} ] #> materialize(d, rbind = FALSE) #> $lt1 #> $lt1[[1]] #> torch_tensor -#> 0.5493 -#> -0.5515 -#> -0.5812 +#> 0.7826 +#> 0.9021 +#> -0.3734 #> [ CPUFloatType{3} ] #> #> $lt1[[2]] #> torch_tensor -#> -1.2274 -#> 0.8850 -#> -0.0685 +#> -0.1509 +#> 1.2695 +#> -1.4460 #> [ CPUFloatType{3} ] #> #> $lt1[[3]] #> torch_tensor -#> -0.1044 -#> -0.7159 -#> 0.1187 +#> -0.4803 +#> -0.3497 +#> -1.1911 #> [ CPUFloatType{3} ] #> #> $lt1[[4]] #> torch_tensor -#> -0.7307 -#> -0.7775 -#> 0.9271 +#> 0.6350 +#> -1.0374 +#> 0.6134 #> [ CPUFloatType{3} ] #> #> $lt1[[5]] #> torch_tensor -#> -0.7786 -#> 0.4380 -#> -0.4887 +#> 1.4071 +#> 0.2895 +#> -2.0563 #> [ CPUFloatType{3} ] #> #> $lt1[[6]] #> torch_tensor -#> -0.2497 -#> -0.4458 -#> -0.4004 +#> 0.3326 +#> -0.2041 +#> 0.8140 #> [ CPUFloatType{3} ] #> #> $lt1[[7]] #> torch_tensor -#> -0.2404 -#> 0.9826 -#> 0.1626 +#> 0.4219 +#> -0.1421 +#> -0.2484 #> [ CPUFloatType{3} ] #> #> $lt1[[8]] #> torch_tensor -#> -0.5319 -#> -1.7876 -#> 0.2970 +#> -0.3052 +#> -0.5527 +#> 1.2542 #> [ CPUFloatType{3} ] #> #> $lt1[[9]] #> torch_tensor -#> -1.0201 -#> 0.7622 -#> 0.8252 +#> -0.7892 +#> -1.4757 +#> -0.2113 #> [ CPUFloatType{3} ] #> #> $lt1[[10]] #> torch_tensor -#> 0.4119 -#> 0.1936 -#> -1.7774 +#> -0.0047 +#> 0.0414 +#> 1.5259 #> [ CPUFloatType{3} ] #> #> #> $lt2 #> $lt2[[1]] #> torch_tensor -#> 0.0377 -#> -0.0322 -#> -1.0237 -#> 0.6420 +#> 0.1728 +#> -1.7401 +#> 0.6610 +#> 1.7411 #> [ CPUFloatType{4} ] #> #> $lt2[[2]] #> torch_tensor -#> 1.5552 -#> 0.5489 -#> 0.1991 -#> -1.0462 +#> -0.4639 +#> -0.3019 +#> -1.3339 +#> -0.2104 #> [ CPUFloatType{4} ] #> #> $lt2[[3]] #> torch_tensor -#> 1.1983 -#> -1.2508 -#> -0.1582 -#> -0.0274 +#> -0.9944 +#> 0.5949 +#> -1.0769 +#> 0.9698 #> [ CPUFloatType{4} ] #> #> $lt2[[4]] #> torch_tensor -#> 0.2271 -#> -1.7810 -#> 0.2622 -#> -0.4218 +#> -0.9466 +#> -1.6516 +#> -0.8122 +#> -0.0687 #> [ CPUFloatType{4} ] #> #> $lt2[[5]] #> torch_tensor -#> 0.4619 -#> 0.5835 -#> 0.6739 -#> -0.2246 +#> -0.2945 +#> -0.1360 +#> -1.3794 +#> -2.0543 #> [ CPUFloatType{4} ] #> #> $lt2[[6]] #> torch_tensor -#> 0.5479 -#> -0.4525 -#> 1.1257 -#> 0.9266 +#> -0.8444 +#> -1.8168 +#> 0.5025 +#> -0.5932 #> [ CPUFloatType{4} ] #> #> $lt2[[7]] #> torch_tensor -#> -0.5428 -#> 0.2070 -#> -0.5259 -#> -1.1674 +#> 0.3098 +#> -2.3293 +#> 0.6917 +#> 0.4684 #> [ CPUFloatType{4} ] #> #> $lt2[[8]] #> torch_tensor -#> -0.5740 -#> 0.2678 -#> -1.0389 -#> -0.2550 +#> -0.4623 +#> -0.0945 +#> -0.7702 +#> -2.9021 #> [ CPUFloatType{4} ] #> #> $lt2[[9]] #> torch_tensor -#> -0.4178 -#> 0.4700 -#> -1.5360 -#> 0.6578 +#> -1.8322 +#> 1.7678 +#> -1.5651 +#> 2.0952 #> [ CPUFloatType{4} ] #> #> $lt2[[10]] #> torch_tensor -#> 0.4972 -#> 0.8935 -#> 1.1799 -#> -0.1597 +#> -0.2700 +#> 0.7575 +#> 1.9979 +#> 0.0179 #> [ CPUFloatType{4} ] #> #> @@ -411,7 +411,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/materialize_internal.html b/dev/reference/materialize_internal.html index be176e3a..0380da8d 100644 --- a/dev/reference/materialize_internal.html +++ b/dev/reference/materialize_internal.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -111,7 +111,7 @@ Details diff --git a/dev/reference/mlr3torch-package.html b/dev/reference/mlr3torch-package.html index f3f82f8a..adf84928 100644 --- a/dev/reference/mlr3torch-package.html +++ b/dev/reference/mlr3torch-package.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -88,7 +88,7 @@ Author< diff --git a/dev/reference/mlr3torch_callbacks.html b/dev/reference/mlr3torch_callbacks.html index 533a7c5e..cd18f2cc 100644 --- a/dev/reference/mlr3torch_callbacks.html +++ b/dev/reference/mlr3torch_callbacks.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -123,7 +123,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr3torch_losses.html b/dev/reference/mlr3torch_losses.html index b5c5d95f..adfa9df1 100644 --- a/dev/reference/mlr3torch_losses.html +++ b/dev/reference/mlr3torch_losses.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -132,7 +132,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr3torch_optimizers.html b/dev/reference/mlr3torch_optimizers.html index 4dc3a335..2798ad8a 100644 --- a/dev/reference/mlr3torch_optimizers.html +++ b/dev/reference/mlr3torch_optimizers.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -134,7 +134,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_backends_lazy.html b/dev/reference/mlr_backends_lazy.html index 5d42c47c..9ca0ae90 100644 --- a/dev/reference/mlr_backends_lazy.html +++ b/dev/reference/mlr_backends_lazy.html @@ -49,7 +49,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -359,6 +359,7 @@ Examples data_formats = "data.table", primary_key = "row_id" ) +#> Warning: DataBackend$initialize argument 'data_formats' is deprecated and will be removed in the future. # Note that the constructor is not called for the calls below # as they can be read from the metadata @@ -373,13 +374,15 @@ Examplescol_info(backend_lazy) #> id type levels #> <char> <char> <list> -#> 1: x numeric -#> 2: y numeric -#> 3: row_id integer +#> 1: x numeric [NULL] +#> 2: y numeric [NULL] +#> 3: row_id integer [NULL] # Only now the backend is constructed backend_lazy$data(1, "x") #> Data is constructed! +#> Warning: DataBackend$data_formats is deprecated and will be removed in the future. +#> Warning: DataBackendDataTable$data argument 'data_format' is deprecated and will be removed in the future. #> x #> <num> #> 1: -0.3872136 @@ -399,7 +402,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.checkpoint.html b/dev/reference/mlr_callback_set.checkpoint.html index 542a47e2..627704ae 100644 --- a/dev/reference/mlr_callback_set.checkpoint.html +++ b/dev/reference/mlr_callback_set.checkpoint.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -178,7 +178,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.history.html b/dev/reference/mlr_callback_set.history.html index fc5ea7e5..0e77d9f7 100644 --- a/dev/reference/mlr_callback_set.history.html +++ b/dev/reference/mlr_callback_set.history.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -156,7 +156,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.html b/dev/reference/mlr_callback_set.html index b1745015..15382478 100644 --- a/dev/reference/mlr_callback_set.html +++ b/dev/reference/mlr_callback_set.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -231,7 +231,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.progress.html b/dev/reference/mlr_callback_set.progress.html index 42f700e8..947c10d4 100644 --- a/dev/reference/mlr_callback_set.progress.html +++ b/dev/reference/mlr_callback_set.progress.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -157,7 +157,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_context_torch.html b/dev/reference/mlr_context_torch.html index ad3d1778..6e79780c 100644 --- a/dev/reference/mlr_context_torch.html +++ b/dev/reference/mlr_context_torch.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -301,7 +301,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_learners.mlp.html b/dev/reference/mlr_learners.mlp.html index eb1b5edd..97ba16ce 100644 --- a/dev/reference/mlr_learners.mlp.html +++ b/dev/reference/mlr_learners.mlp.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -211,7 +211,7 @@ Examples# Score the predictions predictions$score() #> classif.ce -#> 0.6666667 +#> 0.68
## Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +## Learner$initialize argument 'data_formats' is deprecated and will be removed in +## the future.
+mlp$train(task)
mlp$train(task)
## Epoch 1: 1.22 ## Epoch 2: 1.27 ## Epoch 3: 1.48 @@ -250,7 +253,7 @@ Using the Custom Logger## Epoch 5: 1.09
The information that is returnede by state_dict() is now accessible via the Learner’s $model-slot:
state_dict()
Learner
$model
+ mlp$model$callbacks$custom_logger ## [1] 1.090038
mlp$model$callbacks$custom_logger
## [1] 1.090038
The wrapped loss module generator is accessible through the slot $generator.
$generator
@@ -235,7 +238,7 @@ Loss #> clone: function (deep = FALSE, ..., replace_values = TRUE) #> Private: #> .__clone_r6__: function (deep = FALSE) -#> Parent env: <environment: 0x558c2b6c0e38> +#> Parent env: <environment: 0x55d8b28bbac0> #> Locked objects: FALSE #> Locked class: FALSE #> Portable: TRUE
The wrapped torch optimizer can be accessed through the slot generator.
generator
Parameters of TorchOptimizer (but also @@ -404,22 +407,22 @@
TorchOptimizer
prediction_custom$score(msr("regr.mae")) #> regr.mae -#> 9.904111 +#> 7.122375 prediction$score(msr("regr.mae")) #> regr.mae -#> 10.03284
Because we configured the learner to use the history callback, we can find the validation history in its $model slot:
head(mlp_custom$model$callbacks$history$valid) #> epoch regr.mae #> <num> <num> -#> 1: 1 1.048699e+05 -#> 2: 2 2.500048e+06 -#> 3: 3 6.342546e+02 -#> 4: 4 1.688923e+04 -#> 5: 5 8.859892e+01 -#> 6: 6 9.095035e+00
The plot below shows it for the epochs 6 to 30.
Other important information that is stored in the @@ -439,7 +442,7 @@
Site built with pkgdown 2.1.0.
Site built with pkgdown 2.1.1.
torch
A nn_module is constructed from a nn_module_generator. nn_linear is one of the @@ -117,8 +117,8 @@
nn_module
nn_module_generator
nn_linear
A neural network with one (4-unit) hidden layer and two outputs needs the following ingredients
We will now continue with showing how such a neural network can be represented in mlr3torch.
mlr3torch
Note we only use the $train(), since torch modules do not have anything that maps to the state (it is filled by @@ -196,8 +196,8 @@
$train()
state
While this object allows to easily perform a forward pass, it does not inherit from nn_module, which is useful for various @@ -245,8 +245,8 @@
graph_module(input) #> torch_tensor -#> 0.3595 0.1750 0.4655 -#> 0.3147 0.2049 0.4804 +#> 0.3541 0.2318 0.4141 +#> 0.3512 0.2295 0.4192 #> [ CPUFloatType{2,3} ][ grad_fn = <SoftmaxBackward0> ]
ModelDescriptor
The first linear layer that takes “Sepal” input ("linear1") creates a 2x4 tensor (batch size 2, 4 units), @@ -689,14 +689,14 @@
"linear1"
We observe that the po("nn_merge_cat") concatenates these, as expected:
po("nn_merge_cat")
library(mlr3torch) mnist = tsk("mnist") +#> Warning in warn_deprecated("DataBackend$initialize argument 'data_formats'"): +#> DataBackend$initialize argument 'data_formats' is deprecated and will be +#> removed in the future. mnist #> <TaskClassif:mnist> (70000 x 2): MNIST Digit Classification #> * Target: label @@ -119,6 +122,11 @@ mnist$head() #> Processing... #> Done! +#> Warning in warn_deprecated("DataBackend$data_formats"): +#> DataBackend$data_formats is deprecated and will be removed in the future. +#> Warning in warn_deprecated("DataBackendDataTable$data argument 'data_format'"): +#> DataBackendDataTable$data argument 'data_format' is deprecated and will be +#> removed in the future. #> label image #> <fctr> <lazy_tensor> #> 1: 5 <tnsr[1x28x28]> @@ -154,6 +162,9 @@ neurons = c(100, 100), epochs = 10, batch_size = 32 ) +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. mlp #> <LearnerTorchMLP[classif]:classif.mlp>: My Little Powny #> * Model: - @@ -386,7 +397,7 @@ Digging Into Internals#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,1)] #> * input_map: (x) -> Graph -#> * pointer: nop.e73617.x.output +#> * pointer: nop.75bcd5.x.output #> * shape: [(NA,1)] The printed output of the data descriptor informs us about: @@ -433,7 +444,7 @@ Digging Into Internals#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,1)] #> * input_map: (x) -> Graph -#> * pointer: nop.e73617.x.output +#> * pointer: nop.75bcd5.x.output #> * shape: [(NA,1)]
mnist$head() #> Processing... #> Done! +#> Warning in warn_deprecated("DataBackend$data_formats"): +#> DataBackend$data_formats is deprecated and will be removed in the future. +#> Warning in warn_deprecated("DataBackendDataTable$data argument 'data_format'"): +#> DataBackendDataTable$data argument 'data_format' is deprecated and will be +#> removed in the future. #> label image #> <fctr> <lazy_tensor> #> 1: 5 <tnsr[1x28x28]> @@ -154,6 +162,9 @@ neurons = c(100, 100), epochs = 10, batch_size = 32 ) +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. mlp #> <LearnerTorchMLP[classif]:classif.mlp>: My Little Powny #> * Model: - @@ -386,7 +397,7 @@ Digging Into Internals#> <DataDescriptor: 1 ops> #> * dataset_shapes: [x: (NA,1)] #> * input_map: (x) -> Graph -#> * pointer: nop.e73617.x.output +#> * pointer: nop.75bcd5.x.output #> * shape: [(NA,1)]
The printed output of the data descriptor informs us about:
What happens during materialize(lt[1]) is the following:
materialize(lt[1])
We see that the $graph has a new pipeop with id "poly.x" and the output pointer points to poly.x. Also we see that the shape of the tensor is now @@ -508,7 +519,7 @@
$graph
"poly.x"
pointer
poly.x
library(mlr3torch) imagenet = tsk("tiny_imagenet") +#> Warning in warn_deprecated("DataBackend$initialize argument 'data_formats'"): +#> DataBackend$initialize argument 'data_formats' is deprecated and will be +#> removed in the future. imagenet #> <TaskClassif:tiny_imagenet> (110000 x 2): ImageNet Subset #> * Target: class @@ -175,6 +178,9 @@ t_clbk("checkpoint", freq = 20, path = checkpoint)) %>>% po("torch_model_classif", batch_size = 32, epochs = 100L, device = "cuda") +#> Warning in warn_deprecated("Learner$initialize argument 'data_formats'"): +#> Learner$initialize argument 'data_formats' is deprecated and will be removed in +#> the future. cnn = as_learner(architecture) cnn$id = "cnn"
Fischer S, Binder M (2024). mlr3torch: Deep Learning with 'mlr3'. -R package version 0.1.0-9000, https://github.com/mlr-org/mlr3torch/, https://mlr3torch.mlr-org.com/. +R package version 0.1.1-9000, https://github.com/mlr-org/mlr3torch/, https://mlr3torch.mlr-org.com/.
@Manual{, title = {mlr3torch: Deep Learning with 'mlr3'}, author = {Sebastian Fischer and Martin Binder}, year = {2024}, - note = {R package version 0.1.0-9000, https://github.com/mlr-org/mlr3torch/}, + note = {R package version 0.1.1-9000, https://github.com/mlr-org/mlr3torch/}, url = {https://mlr3torch.mlr-org.com/}, }
NEWS.md
CRAN release: 2024-09-12
PipeOps
po("trafo_resize")
LearnerTabResnet
nn()
CRAN release: 2024-07-08
lt1 = as_lazy_tensor(torch_randn(10, 3)) materialize(lt1, rbind = TRUE) #> torch_tensor -#> 0.5493 -0.5515 -0.5812 -#> -1.2274 0.8850 -0.0685 -#> -0.1044 -0.7159 0.1187 -#> -0.7307 -0.7775 0.9271 -#> -0.7786 0.4380 -0.4887 -#> -0.2497 -0.4458 -0.4004 -#> -0.2404 0.9826 0.1626 -#> -0.5319 -1.7876 0.2970 -#> -1.0201 0.7622 0.8252 -#> 0.4119 0.1936 -1.7774 +#> 0.7826 0.9021 -0.3734 +#> -0.1509 1.2695 -1.4460 +#> -0.4803 -0.3497 -1.1911 +#> 0.6350 -1.0374 0.6134 +#> 1.4071 0.2895 -2.0563 +#> 0.3326 -0.2041 0.8140 +#> 0.4219 -0.1421 -0.2484 +#> -0.3052 -0.5527 1.2542 +#> -0.7892 -1.4757 -0.2113 +#> -0.0047 0.0414 1.5259 #> [ CPUFloatType{10,3} ] materialize(lt1, rbind = FALSE) #> [[1]] #> torch_tensor -#> 0.5493 -#> -0.5515 -#> -0.5812 +#> 0.7826 +#> 0.9021 +#> -0.3734 #> [ CPUFloatType{3} ] #> #> [[2]] #> torch_tensor -#> -1.2274 -#> 0.8850 -#> -0.0685 +#> -0.1509 +#> 1.2695 +#> -1.4460 #> [ CPUFloatType{3} ] #> #> [[3]] #> torch_tensor -#> -0.1044 -#> -0.7159 -#> 0.1187 +#> -0.4803 +#> -0.3497 +#> -1.1911 #> [ CPUFloatType{3} ] #> #> [[4]] #> torch_tensor -#> -0.7307 -#> -0.7775 -#> 0.9271 +#> 0.6350 +#> -1.0374 +#> 0.6134 #> [ CPUFloatType{3} ] #> #> [[5]] #> torch_tensor -#> -0.7786 -#> 0.4380 -#> -0.4887 +#> 1.4071 +#> 0.2895 +#> -2.0563 #> [ CPUFloatType{3} ] #> #> [[6]] #> torch_tensor -#> -0.2497 -#> -0.4458 -#> -0.4004 +#> 0.3326 +#> -0.2041 +#> 0.8140 #> [ CPUFloatType{3} ] #> #> [[7]] #> torch_tensor -#> -0.2404 -#> 0.9826 -#> 0.1626 +#> 0.4219 +#> -0.1421 +#> -0.2484 #> [ CPUFloatType{3} ] #> #> [[8]] #> torch_tensor -#> -0.5319 -#> -1.7876 -#> 0.2970 +#> -0.3052 +#> -0.5527 +#> 1.2542 #> [ CPUFloatType{3} ] #> #> [[9]] #> torch_tensor -#> -1.0201 -#> 0.7622 -#> 0.8252 +#> -0.7892 +#> -1.4757 +#> -0.2113 #> [ CPUFloatType{3} ] #> #> [[10]] #> torch_tensor -#> 0.4119 -#> 0.1936 -#> -1.7774 +#> -0.0047 +#> 0.0414 +#> 1.5259 #> [ CPUFloatType{3} ] #> lt2 = as_lazy_tensor(torch_randn(10, 4)) @@ -219,184 +219,184 @@ Examplesmaterialize(d, rbind = TRUE) #> $lt1 #> torch_tensor -#> 0.5493 -0.5515 -0.5812 -#> -1.2274 0.8850 -0.0685 -#> -0.1044 -0.7159 0.1187 -#> -0.7307 -0.7775 0.9271 -#> -0.7786 0.4380 -0.4887 -#> -0.2497 -0.4458 -0.4004 -#> -0.2404 0.9826 0.1626 -#> -0.5319 -1.7876 0.2970 -#> -1.0201 0.7622 0.8252 -#> 0.4119 0.1936 -1.7774 +#> 0.7826 0.9021 -0.3734 +#> -0.1509 1.2695 -1.4460 +#> -0.4803 -0.3497 -1.1911 +#> 0.6350 -1.0374 0.6134 +#> 1.4071 0.2895 -2.0563 +#> 0.3326 -0.2041 0.8140 +#> 0.4219 -0.1421 -0.2484 +#> -0.3052 -0.5527 1.2542 +#> -0.7892 -1.4757 -0.2113 +#> -0.0047 0.0414 1.5259 #> [ CPUFloatType{10,3} ] #> #> $lt2 #> torch_tensor -#> 0.0377 -0.0322 -1.0237 0.6420 -#> 1.5552 0.5489 0.1991 -1.0462 -#> 1.1983 -1.2508 -0.1582 -0.0274 -#> 0.2271 -1.7810 0.2622 -0.4218 -#> 0.4619 0.5835 0.6739 -0.2246 -#> 0.5479 -0.4525 1.1257 0.9266 -#> -0.5428 0.2070 -0.5259 -1.1674 -#> -0.5740 0.2678 -1.0389 -0.2550 -#> -0.4178 0.4700 -1.5360 0.6578 -#> 0.4972 0.8935 1.1799 -0.1597 +#> 0.1728 -1.7401 0.6610 1.7411 +#> -0.4639 -0.3019 -1.3339 -0.2104 +#> -0.9944 0.5949 -1.0769 0.9698 +#> -0.9466 -1.6516 -0.8122 -0.0687 +#> -0.2945 -0.1360 -1.3794 -2.0543 +#> -0.8444 -1.8168 0.5025 -0.5932 +#> 0.3098 -2.3293 0.6917 0.4684 +#> -0.4623 -0.0945 -0.7702 -2.9021 +#> -1.8322 1.7678 -1.5651 2.0952 +#> -0.2700 0.7575 1.9979 0.0179 #> [ CPUFloatType{10,4} ] #> materialize(d, rbind = FALSE) #> $lt1 #> $lt1[[1]] #> torch_tensor -#> 0.5493 -#> -0.5515 -#> -0.5812 +#> 0.7826 +#> 0.9021 +#> -0.3734 #> [ CPUFloatType{3} ] #> #> $lt1[[2]] #> torch_tensor -#> -1.2274 -#> 0.8850 -#> -0.0685 +#> -0.1509 +#> 1.2695 +#> -1.4460 #> [ CPUFloatType{3} ] #> #> $lt1[[3]] #> torch_tensor -#> -0.1044 -#> -0.7159 -#> 0.1187 +#> -0.4803 +#> -0.3497 +#> -1.1911 #> [ CPUFloatType{3} ] #> #> $lt1[[4]] #> torch_tensor -#> -0.7307 -#> -0.7775 -#> 0.9271 +#> 0.6350 +#> -1.0374 +#> 0.6134 #> [ CPUFloatType{3} ] #> #> $lt1[[5]] #> torch_tensor -#> -0.7786 -#> 0.4380 -#> -0.4887 +#> 1.4071 +#> 0.2895 +#> -2.0563 #> [ CPUFloatType{3} ] #> #> $lt1[[6]] #> torch_tensor -#> -0.2497 -#> -0.4458 -#> -0.4004 +#> 0.3326 +#> -0.2041 +#> 0.8140 #> [ CPUFloatType{3} ] #> #> $lt1[[7]] #> torch_tensor -#> -0.2404 -#> 0.9826 -#> 0.1626 +#> 0.4219 +#> -0.1421 +#> -0.2484 #> [ CPUFloatType{3} ] #> #> $lt1[[8]] #> torch_tensor -#> -0.5319 -#> -1.7876 -#> 0.2970 +#> -0.3052 +#> -0.5527 +#> 1.2542 #> [ CPUFloatType{3} ] #> #> $lt1[[9]] #> torch_tensor -#> -1.0201 -#> 0.7622 -#> 0.8252 +#> -0.7892 +#> -1.4757 +#> -0.2113 #> [ CPUFloatType{3} ] #> #> $lt1[[10]] #> torch_tensor -#> 0.4119 -#> 0.1936 -#> -1.7774 +#> -0.0047 +#> 0.0414 +#> 1.5259 #> [ CPUFloatType{3} ] #> #> #> $lt2 #> $lt2[[1]] #> torch_tensor -#> 0.0377 -#> -0.0322 -#> -1.0237 -#> 0.6420 +#> 0.1728 +#> -1.7401 +#> 0.6610 +#> 1.7411 #> [ CPUFloatType{4} ] #> #> $lt2[[2]] #> torch_tensor -#> 1.5552 -#> 0.5489 -#> 0.1991 -#> -1.0462 +#> -0.4639 +#> -0.3019 +#> -1.3339 +#> -0.2104 #> [ CPUFloatType{4} ] #> #> $lt2[[3]] #> torch_tensor -#> 1.1983 -#> -1.2508 -#> -0.1582 -#> -0.0274 +#> -0.9944 +#> 0.5949 +#> -1.0769 +#> 0.9698 #> [ CPUFloatType{4} ] #> #> $lt2[[4]] #> torch_tensor -#> 0.2271 -#> -1.7810 -#> 0.2622 -#> -0.4218 +#> -0.9466 +#> -1.6516 +#> -0.8122 +#> -0.0687 #> [ CPUFloatType{4} ] #> #> $lt2[[5]] #> torch_tensor -#> 0.4619 -#> 0.5835 -#> 0.6739 -#> -0.2246 +#> -0.2945 +#> -0.1360 +#> -1.3794 +#> -2.0543 #> [ CPUFloatType{4} ] #> #> $lt2[[6]] #> torch_tensor -#> 0.5479 -#> -0.4525 -#> 1.1257 -#> 0.9266 +#> -0.8444 +#> -1.8168 +#> 0.5025 +#> -0.5932 #> [ CPUFloatType{4} ] #> #> $lt2[[7]] #> torch_tensor -#> -0.5428 -#> 0.2070 -#> -0.5259 -#> -1.1674 +#> 0.3098 +#> -2.3293 +#> 0.6917 +#> 0.4684 #> [ CPUFloatType{4} ] #> #> $lt2[[8]] #> torch_tensor -#> -0.5740 -#> 0.2678 -#> -1.0389 -#> -0.2550 +#> -0.4623 +#> -0.0945 +#> -0.7702 +#> -2.9021 #> [ CPUFloatType{4} ] #> #> $lt2[[9]] #> torch_tensor -#> -0.4178 -#> 0.4700 -#> -1.5360 -#> 0.6578 +#> -1.8322 +#> 1.7678 +#> -1.5651 +#> 2.0952 #> [ CPUFloatType{4} ] #> #> $lt2[[10]] #> torch_tensor -#> 0.4972 -#> 0.8935 -#> 1.1799 -#> -0.1597 +#> -0.2700 +#> 0.7575 +#> 1.9979 +#> 0.0179 #> [ CPUFloatType{4} ] #> #> @@ -411,7 +411,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/materialize_internal.html b/dev/reference/materialize_internal.html index be176e3a..0380da8d 100644 --- a/dev/reference/materialize_internal.html +++ b/dev/reference/materialize_internal.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -111,7 +111,7 @@ Details diff --git a/dev/reference/mlr3torch-package.html b/dev/reference/mlr3torch-package.html index f3f82f8a..adf84928 100644 --- a/dev/reference/mlr3torch-package.html +++ b/dev/reference/mlr3torch-package.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -88,7 +88,7 @@ Author< diff --git a/dev/reference/mlr3torch_callbacks.html b/dev/reference/mlr3torch_callbacks.html index 533a7c5e..cd18f2cc 100644 --- a/dev/reference/mlr3torch_callbacks.html +++ b/dev/reference/mlr3torch_callbacks.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -123,7 +123,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr3torch_losses.html b/dev/reference/mlr3torch_losses.html index b5c5d95f..adfa9df1 100644 --- a/dev/reference/mlr3torch_losses.html +++ b/dev/reference/mlr3torch_losses.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -132,7 +132,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr3torch_optimizers.html b/dev/reference/mlr3torch_optimizers.html index 4dc3a335..2798ad8a 100644 --- a/dev/reference/mlr3torch_optimizers.html +++ b/dev/reference/mlr3torch_optimizers.html @@ -13,7 +13,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -134,7 +134,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_backends_lazy.html b/dev/reference/mlr_backends_lazy.html index 5d42c47c..9ca0ae90 100644 --- a/dev/reference/mlr_backends_lazy.html +++ b/dev/reference/mlr_backends_lazy.html @@ -49,7 +49,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -359,6 +359,7 @@ Examples data_formats = "data.table", primary_key = "row_id" ) +#> Warning: DataBackend$initialize argument 'data_formats' is deprecated and will be removed in the future. # Note that the constructor is not called for the calls below # as they can be read from the metadata @@ -373,13 +374,15 @@ Examplescol_info(backend_lazy) #> id type levels #> <char> <char> <list> -#> 1: x numeric -#> 2: y numeric -#> 3: row_id integer +#> 1: x numeric [NULL] +#> 2: y numeric [NULL] +#> 3: row_id integer [NULL] # Only now the backend is constructed backend_lazy$data(1, "x") #> Data is constructed! +#> Warning: DataBackend$data_formats is deprecated and will be removed in the future. +#> Warning: DataBackendDataTable$data argument 'data_format' is deprecated and will be removed in the future. #> x #> <num> #> 1: -0.3872136 @@ -399,7 +402,7 @@ Examples - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.checkpoint.html b/dev/reference/mlr_callback_set.checkpoint.html index 542a47e2..627704ae 100644 --- a/dev/reference/mlr_callback_set.checkpoint.html +++ b/dev/reference/mlr_callback_set.checkpoint.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -178,7 +178,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.history.html b/dev/reference/mlr_callback_set.history.html index fc5ea7e5..0e77d9f7 100644 --- a/dev/reference/mlr_callback_set.history.html +++ b/dev/reference/mlr_callback_set.history.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -156,7 +156,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.html b/dev/reference/mlr_callback_set.html index b1745015..15382478 100644 --- a/dev/reference/mlr_callback_set.html +++ b/dev/reference/mlr_callback_set.html @@ -17,7 +17,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -231,7 +231,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_callback_set.progress.html b/dev/reference/mlr_callback_set.progress.html index 42f700e8..947c10d4 100644 --- a/dev/reference/mlr_callback_set.progress.html +++ b/dev/reference/mlr_callback_set.progress.html @@ -7,7 +7,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -157,7 +157,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_context_torch.html b/dev/reference/mlr_context_torch.html index ad3d1778..6e79780c 100644 --- a/dev/reference/mlr_context_torch.html +++ b/dev/reference/mlr_context_torch.html @@ -11,7 +11,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -301,7 +301,7 @@ Arguments - Site built with pkgdown 2.1.0. + Site built with pkgdown 2.1.1. diff --git a/dev/reference/mlr_learners.mlp.html b/dev/reference/mlr_learners.mlp.html index eb1b5edd..97ba16ce 100644 --- a/dev/reference/mlr_learners.mlp.html +++ b/dev/reference/mlr_learners.mlp.html @@ -9,7 +9,7 @@ mlr3torch - 0.1.0-9000 + 0.1.1-9000 @@ -211,7 +211,7 @@ Examples# Score the predictions predictions$score() #> classif.ce -#> 0.6666667 +#> 0.68