Learn R Programming

deepregression (version 2.2.0)

layer_spline_torch: Function to define spline as Torch layer

Description

Function to define spline as Torch layer

Usage

layer_spline_torch(
  P,
  units = 1L,
  name,
  trainable = TRUE,
  kernel_initializer = "glorot_uniform",
  ...
)

Value

Torch spline layer

Arguments

P

matrix; penalty matrix

units

integer; number of output units

name

string; string defining the layer's name

trainable

logical; whether layer is trainable

kernel_initializer

initializer; for basis coefficients

...

value used for constant kernel initializer