weight_update
Computes perceptron or logistic single-example updates from labeled example rows to adjust weights for classification training.
Instructions
Perceptron (threshold) or logistic single-example weight updates, one row per example. examples: [[x1, ..., y]].
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": {
"examples": "<examples>",
"weights": "<weights>"
},
"name": "weight_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| epochs | No | ||
| weights | Yes | ||
| examples | Yes | ||
| activation | No | threshold |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |