<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> A [[Grid Prediction]] result is lean by default. To inspect per-combination tables, set <span class="mono">retain_grid_objects</span> on [[Settings/Options#GridOptions|GridOptions]] to the keys you will read. **Impact on Fit** and **Impact on Prediction** do not depend on this; see [[Results/Grid Insights|Grid Insights]]. Shared tables cover every combination. Per-censor arrays sit under <span class="mono">relevance</span> or <span class="mono">similarity</span>. ```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 ``` The combination count Q comes from the shape of the retained arrays. 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>) | Pass only the keys you will read. What each key unlocks in more detail: [[Settings/Options#Retain grid objects|Retain grid objects]]. ## Related - [[Grid Prediction]]: the call that produces cells - [[Results/Grid Insights|Grid Insights]]: variable impact on the composite <div class="btn-row center"> <a class="btn-primary" href="/Results/Grid%20Insights">Grid Insights</a> <a class="btn-ghost" href="/Settings/Options#Retain%20grid%20objects">Retain grid objects</a> </div>