MLP
Multi-Layer Perceptron
Source Documentation
Example Net Spec
{
...
"agent": [{
"net": {
"type": "MLPNet",
"shared": false, // whether to shared networks for Actor-Critic
"hid_layers": [256, 128, 64],
"hid_layers_activation": "relu",
"out_layer_activation": null, // output layer activation
"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.02
},
...
}
}],
...
}Last updated
Was this helpful?