Learn R Programming

engression (version 0.1.5)

print.engression: Print an Engression Model Object

Description

This function is a utility that displays a summary of a fitted Engression model object.

Usage

# S3 method for engression
print(x, ...)

Value

This function does not return anything. It prints a summary of the model, including information about its architecture and training process, and the loss values achieved at several epochs during training.

Arguments

x

A trained engression model returned from the engressionfit function.

...

additional arguments (currently ignored)

Examples

Run this code
# \donttest{
  n = 1000
  p = 5

  X = matrix(rnorm(n*p),ncol=p)
  Y = (X[,1]+rnorm(n)*0.1)^2 + (X[,2]+rnorm(n)*0.1) + rnorm(n)*0.1
  
  ## fit engression object
  engr = engression(X,Y)
  print(engr)
# }

Run the code above in your browser using DataLab