Explain ML prediction
stoquant_explain_ml_predictionExplain why a stock's ML prediction is bullish or bearish by showing top feature contributions with signed magnitudes. Identify which signals pushed the probability up or down.
Instructions
Top feature contributions behind a ticker's ML outperformance prediction — which signals pushed the probability up or down, with signed magnitudes. Use after stoquant_get_ml_prediction when the user asks WHY the model is bullish/bearish. horizon must match the prediction you are explaining.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Top N features to return (default 10, max 50) | |
| ticker | Yes | ||
| horizon | No | 5 |