Interview practice question
Random forest too slow to predict
Machine Learning · Classical ML · Beginner
Your random forest with 2,000 deep trees is too slow to score requests in your API. How do you speed it up?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Fewer trees often lose little accuracy.
- Limit depth and leaf size.
- Use parallel prediction (n_jobs).
- Try gradient boosting with fewer, smaller trees.
- Optimized runtimes (ONNX, Treelite).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.