Description Usage Arguments Value
Backpropagate data on a neural network
1 2 3 4 5 6 7 8 9 | backprop_policy(
policy_nn,
critic_nn,
newdata,
n_epoch = 1,
step_size = 0.1,
batch_size = ceiling(nrow(newdata)/10),
trace = FALSE
)
|
policy_nn |
policy neural network. |
critic_nn |
critic neural network. |
newdata |
data.frame of the inputs from policy and the outputs wanted from critic. |
n_epoch |
integer : number of iterations of backpropagation going through every data once. |
step_size |
numeric : multiplier of the gradient. |
batch_size |
integer : size of batch of backpropagation. |
trace |
logical : printing last ran epoch? |
list of neural network (class : nn) and the mean Loss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.