train_flow_model
Train a generative Flow model on a portfolio and conditioning set to generate synthetic market paths. Returns immediately; training runs on GPU and takes 5-15 minutes.
Instructions
Train a generative Flow model on a portfolio and conditioning set. Returns immediately — training runs on a GPU and takes 5-15 minutes. After calling this, STOP and tell the user training has started. Let them keep chatting. The user will ask you to check progress — use check_flow_job(job_id=...) when they do. Do NOT automatically poll or call check_flow_job yourself. Requires conditioning_set_id (from list_feature_set_templates or create_feature_set) and tickers or portfolio_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| horizon | No | Forecast horizon in trading days. ~1 month = 20, ~1 quarter = 60, ~6 months = 120. Defaults to 60 if omitted. | |
| tickers | No | Tickers to analyze (e.g. ['AAPL', 'MSFT']). Auto-creates a portfolio if portfolio_id is not given. | |
| weights | No | Optional weights (must sum to 1.0). Defaults to equal weights. | |
| portfolio_id | No | UUID of an existing portfolio. If omitted, provide tickers instead. | |
| conditioning_set_id | Yes | UUID of the conditioning set (from list_feature_set_templates or create_feature_set). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |