Learn R Programming

neuralGAM (version 2.0.1)

summary.neuralGAM: Summary of a neuralGAM model

Description

Summarizes a fitted neuralGAM object: family, formula, sample size, intercept, training MSE, per-term neural net settings, per-term NN layer configuration, and training history. If a linear component is present, its coefficients are also reported.

Usage

# S3 method for neuralGAM
summary(object, ...)

Value

Invisibly returns object. Prints a human-readable summary.

Arguments

object

A neuralGAM object.

...

Additional arguments (currently unused).

Author

Ines Ortega-Fernandez, Marta Sestelo

Examples

Run this code
if (FALSE) {

library(neuralGAM)
dat <- sim_neuralGAM_data()
train <- dat$train
test  <- dat$test

ngam <- neuralGAM(
  y ~ s(x1) + x2 + s(x3),
  data = train,
  num_units = 128,
  family = "gaussian",
  activation = "relu",
  learning_rate = 0.001,
  bf_threshold = 0.001,
  max_iter_backfitting = 10,
  max_iter_ls = 10,
  seed = 1234
)
summary(ngam)
}

Run the code above in your browser using DataLab