Description Usage Arguments Value Author(s)
Used as part of other functions.
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
)
|
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 |
A list of class "SCL" giving the estimated matrices and performance indicators
Andreas Rieckmann, Piotr Dworzynski, Claus Ekstrøm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.