Your deployed Random Forest is too large in memory to serve. How would you shrink it while preserving accuracy?
Last updated
Cut tree count at the elbow of OOB score vs.
n_estimators(often 100–300). Shrink trees by raisingmin_samples_leafor cappingmax_depth, which is usually the biggest win with negligible accuracy loss.Compact the representation: float32 thresholds, small feature indices, no per-node class counts, or compile with
treelite/ONNX.Validate each step on OOB or held-out accuracy. Distill into a compact boosted model or shallow forest if more reduction is needed.