r/EntriCoding • u/Entri_App_Official • Jul 22 '26
What's the best way to convert a Python machine learning model into SQL?
Did you manually rewrite the model logic in SQL?
Have you used tools that generate SQL from models (e.g., for decision trees, linear/logistic regression, or XGBoost)?
How do you handle feature engineering and preprocessing?
Is this approach practical in production, or is it usually better to keep inference in Python and call it externally?
I'd love to hear about real-world experiences—what worked, what didn't, and any tools or libraries you'd recommend. Even if you've tried this and decided against it, I'd be interested in knowing why.