Nothing
test_that("nn works", {
x = nn("linear", out_features = 3)
expect_equal(x$id, "linear")
expect_class(x, "PipeOpTorchLinear")
expect_equal(x$param_set$values$out_features, 3)
})
test_that("overwrite id", {
obj = nn("linear", id = "abc")
expect_equal(obj$id, "abc")
})
test_that("unnamed arg", {
graph = po("torch_ingress_num") %>>% nn("block", nn("linear", out_features = 3), n_blocks = 2)
md = graph$train(tsk("iris"))[[1L]]
network = model_descriptor_to_module(md)
expect_equal(network$module_list[[1]]$out_features, 3)
expect_equal(network$module_list[[2]]$out_features, 3)
})
test_that("nn works with cov", {
expect_equal(nn("conv3d")$id, "conv3d")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.