SRCL_cpp_train_network_relu_with_confounder: Function used as part of other functions

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Used as part of other functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
SRCL_cpp_train_network_relu_with_confounder(
  x,
  y,
  c,
  testx,
  testy,
  testc,
  W1_input,
  B1_input,
  W2_input,
  B2_input,
  C2_input,
  lr = 0.01,
  maxepochs = 100
)

Arguments

x

A matrix of predictors for the training dataset

y

A vector of output values for the training data with a length similar to the number of rows of x

c

A matrix of predictors for the training data to be regarded as potential confounder(s)

testx

A matrix of predictors for the test dataset

testy

A vector of output values for the test data with a length similar to the number of rows of x

testc

A matrix of predictors for the test data to be regarded as potential confounder(s)

W1_input

Input-hidden layer weights

B1_input

Biases for the hidden layer

W2_input

Hidden-output layer weights

B2_input

Bias for the output layer (the baseline risk)

C2_input

Weight for the confounder

lr

Initial learning rate

maxepochs

The maximum number of epochs

Value

A list of class "SCL" giving the estimated matrices and performance indicators

Author(s)

Andreas Rieckmann, Piotr Dworzynski, Claus Ekstrøm


ekstroem/SRCL documentation built on Sept. 5, 2020, 8:59 p.m.