<div class="section-label"><span class="num">07</span> Grid Cells</div>
<div class="section-title">Per-combination detail you choose to <em>keep</em>.</div>
Grid cells appear only when you set <span class="mono">retain_grid_objects</span> on [[Config/Options#GridOptions|GridOptions]]. In thin clients they live under <span class="mono">result.grid_cells</span>: shared tables for every combination, plus optional <span class="mono">relevance</span> / <span class="mono">similarity</span> bags for per-censor cell arrays.
Configure keys on [[Config/Options#Retain grid objects|Retain grid objects]].
<p> </p>
## How cells are grouped
```text
result.grid_cells
├── k_cells, combi_cells, ysolo_cells shared
├── relevance yhat_cells, adjusted_fit_cells, n_cells, …
└── similarity same cell fields for similarity censor
```
Combination count Q is taken from the shape of the retained arrays (not a separate root field).
Example: <span class="mono">result.grid_cells.relevance.yhat_cells</span>
## Shared tables
| Field | Shape | Role |
| --- | --- | --- |
| <span class="mono">k_cells</span> | Q × T | Per-combination values related to k |
| <span class="mono">combi_cells</span> | Q × K | Which attributes sit in each combination |
| <span class="mono">ysolo_cells</span> | N × Q | Solo outcomes across combinations |
## Per-censor tables
| Field | Shape | Role |
| --- | --- | --- |
| <span class="mono">yhat_cells</span> | Q × T | Cell predictions |
| <span class="mono">adjusted_fit_cells</span> | Q × T | Cell adjusted fit |
| <span class="mono">n_cells</span> | Q × T | Cell counts |
| <span class="mono">weights_cells</span> | 3-D ≈ (N, T, Q) | Cell observation weights |
| <span class="mono">xi_solo_cells</span> | 3-D ≈ (N, T, Q) | Cell solo weights |
## Retain keys → what you get
| Retain key | Unlocks |
| --- | --- |
| <span class="mono">yhat_cells</span> | Per-censor predictions |
| <span class="mono">adjusted_fit_cells</span> | Per-censor adjusted fit |
| <span class="mono">n_cells</span> | Per-censor counts |
| <span class="mono">weights_cells</span> | Per-censor weights |
| <span class="mono">k_cells</span> | Shared <span class="mono">k_cells</span> |
| <span class="mono">combi_cells</span> | Shared combination design |
| <span class="mono">ysolo_distribution</span> | Pooled histogram on [[Results/Solo Distribution\|Solo Distribution]] (not the same as <span class="mono">ysolo_cells</span>) |
List only the keys you need on <span class="mono">retain_grid_objects</span>. Omit the field for a lean composite.
<div class="btn-row">
<a class="btn-primary" href="/Results/Grid%20Insights">Grid insights</a>
<a class="btn-ghost" href="/Config/Options#Retain%20grid%20objects">Retain grid objects</a>
</div>
## Related
- [[Grid Prediction]]: the call that produces cells
- [[Results/Grid Insights|Grid Insights]]: variable metrics without retain