Description Usage Arguments Examples
View source: R/SRCL_functions.R
This function trains the monotonistic neural network with a confounder connected to the output layer. This functions allows one to divide the training process into several steps.
1 2 3 4 5 6 7 8 9 10 | SRCL_2_train_neural_network_with_confounder(
X,
Y,
C,
model,
lr = 0.01,
epochs = 50000,
patience = 500,
plot_and_evaluation_frequency = 50
)
|
X |
The exposure data |
Y |
The outcome data |
C |
The confounder data |
model |
The fitted monotonistic neural network |
lr |
Learning rate |
epochs |
Epochs |
patience |
The number of epochs allowed without an improvement in performance. |
plot_and_evaluation_frequency |
The interval for plotting the performance and checking the patience |
1 | #See the example under SRCL_0_synthetic_data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.