curve_fit
Fit a mathematical model to data using scipy.optimize.curve_fit with a sympy-parsed expression. Use for regression and parameter estimation.
Instructions
Fit y = model(x) to data with scipy.optimize.curve_fit using a sympy-parsed expression.
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": {
"model": "<model>",
"xdata": "<xdata>",
"ydata": "<ydata>"
},
"name": "curve_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p0 | No | ||
| model | Yes | ||
| xdata | Yes | ||
| ydata | Yes | ||
| param_names | No |