set_weights: Function to set the weights of a deepregression object

View source: R/methods.R

set_weightsR Documentation

Function to set the weights of a deepregression object

Description

Function to set the weights of a deepregression object

Usage

set_weights(
  x,
  weights,
  param = NULL,
  type = c("linear", "nonlinear", "lasso", "ridge", "elasticnet")
)

Arguments

x

deepregression object

weights

a matrix with weights

param

integer; for which parameter to set the weights

type

character; for which type of layer to set the weights;


davidruegamer/deepregression documentation built on May 30, 2022, 6:21 p.m.