train_ml_predictor
Train an ML model to generate trading signals for a stock. Set parameters like model type and return threshold to create predictive signals from historical data.
Instructions
Train an ML predictor model for trading signals.
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": {
"symbol": "<symbol>"
},
"name": "train_ml_predictor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock symbol to train on | |
| start_date | No | Start date for training data | |
| end_date | No | End date for training data | |
| model_type | No | ML model type (random_forest) | random_forest |
| target_periods | No | Forward periods for target variable | |
| return_threshold | No | Return threshold for signal classification | |
| n_estimators | No | ||
| max_depth | No | ||
| min_samples_split | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||