<div class="section-label"><span class="num">03</span> Weights & Insights</div>
<div class="section-title">Which observations mattered, and <em>why</em>.</div>
Beyond the headline forecast, Predict and MaxFit usually fill two nested groups on the results object: <span class="mono">prediction_weights</span> and <span class="mono">insights</span>. Grid composites often leave these empty and use [[Results/Grid Insights|Grid Insights]] instead.
<p> </p>
## prediction_weights
Access: <span class="mono">result.prediction_weights</span> (Python) or <span class="mono">result$prediction_weights</span> (R).
Typically shaped **N × T**:
| Field | Role |
| --- | --- |
| <span class="mono">include</span> | Which observations entered the forecast at each threshold |
| <span class="mono">weights</span> | Weights on the included side |
| <span class="mono">weights_excluded</span> | Weights on the excluded side |
Example: <span class="mono">result.prediction_weights.weights</span>
## insights
Access: <span class="mono">result.insights</span>.
| Field | Shape | Role |
| --- | --- | --- |
| <span class="mono">relevance</span> | N | Relevance of each training row to <span class="mono">theta</span> |
| <span class="mono">similarity</span> | N | Similarity of each row to <span class="mono">theta</span> |
| <span class="mono">info_x</span> | N | How unusual each row is vs the sample mean |
| <span class="mono">info_theta</span> | 1 | How unusual the circumstances are |
| <span class="mono">weights_concentration</span> | T | How concentrated the prediction weights are |
These are the same family as standalone [[Relevance Metrics]], computed as part of the prediction.
## When they appear
| Path | Typical |
| --- | --- |
| Predict / MaxFit | Usually present |
| Grid | Often missing; prefer <span class="mono">grid_insights</span> / <span class="mono">grid_cells</span> |
> [!tip]
> Confirm the group is present before you plot it (<span class="mono">None</span> / <span class="mono">NULL</span> when not filled).
<div class="btn-row">
<a class="btn-primary" href="/Results/Solo%20Distribution">Solo distribution</a>
<a class="btn-ghost" href="/Functions/Relevance%20Metrics">Standalone scores</a>
</div>
## Related
- [[Config/Options#PredictOptions|PredictOptions]]: <span class="mono">censor_type</span> drives the include mask
- [[Results/Core|Core]]: the always-on root forecast fields