| summary.brulee_mlp | R Documentation |
summary() methods brulee neural network models print a
layer-by-layer description of the fitted torch module: each component's
type, shape, and parameter count, followed by the total parameter count.
For brulee_resnet, residual (skip) connections and their projection
layers are shown at the block boundaries where they apply.
## S3 method for class 'brulee_mlp'
summary(object, ...)
## S3 method for class 'brulee_resnet'
summary(object, ...)
## S3 method for class 'brulee_rln'
summary(object, ...)
## S3 method for class 'brulee_auto_int'
summary(object, ...)
## S3 method for class 'brulee_saint'
summary(object, ...)
object |
A |
... |
Not used. |
The model object, invisibly. Called for its side effect of printing the architecture.
if (torch::torch_is_installed() && rlang::is_installed("modeldata")) {
data(ames, package = "modeldata")
ames$Sale_Price <- log10(ames$Sale_Price)
set.seed(1)
fit <- brulee_resnet(Sale_Price ~ Longitude + Latitude, data = ames,
hidden_units = c(8, 4), bottleneck_units = c(6, 3),
residual_at = 2, epochs = 3)
summary(fit)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.