Implement efficient data layout for modelbuilders and gbt trees #3455
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3455"
general
weight: 0.35
razdoburdin
Description
This PR introduces hybrid layout for GBT modelbuilders. After this fix the first 10 layers of trees will be stored in the form of full binary tree (the same way it was done before). This will allow to maintain condition that children of node idx are stored at positions 2 idx and 2 idx + 1 and save time on inference on trees with small depth.
Nodes on deeper levels after this update will be stored in sparse format, meaning that the amount of required memory for storing them will depend linearly on the number of nodes on deeper levels. Previously this dependency was exponential and for deep trees the use of GBT modelbuilders was impractical.
<details>
<summary>Checklist:</summary>
Completeness and readability
Testing
Performance
</details>