Last updated on 2025-08-31 15:49:02 CEST.
Package | ERROR | OK |
---|---|---|
mcboost | 13 | |
mlr3benchmark | 13 | |
mlr3fda | 13 | |
mlr3inferr | 13 | |
mlr3oml | 13 | |
mlr3torch | 3 | 10 |
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 3, OK: 10
Version: 0.3.1
Check: examples
Result: ERROR
Running examples in 'mlr3torch-Ex.R' failed
The error most likely occurred in:
> ### Name: DataDescriptor
> ### Title: Data Descriptor
> ### Aliases: DataDescriptor
>
> ### ** Examples
>
> ## Don't show:
> if (torch::torch_is_installed()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Create a dataset
+ ds = dataset(
+ initialize = function() self$x = torch_randn(10, 3, 3),
+ .getitem = function(i) list(x = self$x[i, ]),
+ .length = function() nrow(self$x)
+ )()
+ dd = DataDescriptor$new(ds, list(x = c(NA, 3, 3)))
+ dd
+ # is the same as using the converter:
+ as_data_descriptor(ds, list(x = c(NA, 3, 3)))
+ ## Don't show:
+ }) # examplesIf
> ds = dataset(initialize = function() self$x = torch_randn(10, 3, 3), .getitem = function(i) list(x = self$x[i,
+ ]), .length = function() nrow(self$x))()
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64