testmodule_linear = nn_module(
initialize = function(task) {
out = output_dim_for(task)
self$linear = nn_linear(length(task$feature_names), out)
},
forward = function(x) {
self$linear(x)
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.