sigmoid_calculate
Calculate sigmoid, tanh, relu, leaky_relu, elu, or swish activation values and derivatives from an input number for neural network workflows.
Instructions
Compute activation functions (sigmoid, tanh, relu, leaky_relu, elu, swish) and their derivatives.
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": {
"x": "<x>"
},
"name": "sigmoid_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Input value. | |
| function | No | Activation function: sigmoid, tanh, relu, leaky_relu, elu, or swish. Default: sigmoid. |