mlp_forward_backprop
Run a forward pass through a feed-forward network and optionally perform one backpropagation step with targets to compute outputs and weight updates.
Instructions
Forward pass through a feed-forward network and, with targets, one back-propagation step (AIMA Fig 18.24). layers[l][j] = weights [w0, w1, ...] of unit j in layer l.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": "<inputs>",
"layers": "<layers>"
},
"name": "mlp_forward_backprop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| inputs | Yes | ||
| layers | Yes | ||
| targets | No | ||
| activation | No | logistic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |