๐RNN
Recurrent Neural Network
Source Documentation
Example Net Spec
{
...
"agent": {
"net": {
"type": "RecurrentNet",
"shared": false, // whether to shared networks for Actor-Critic
"cell_type": "GRU",
"fc_hid_layers": [256, 128],
"hid_layers_activation": "relu",
"out_layer_activation": null,
"rnn_hidden_size": 64,
"rnn_num_layers": 1,
"bidirectional": false, // whether to use bidirectional layer
"seq_len": 4,
"init_fn": "xavier_uniform_", // weight initialization
"clip_grad_val": 1.0, // clip gradient by norm
"loss_spec": { // default loss function used for regression
"name": "MSELoss"
},
"optim_spec": { // the optimizer and its arguments
"name": "Adam",
"lr": 0.01
},
"gpu": "auto"
}
},
...
}Last updated
Was this helpful?