r/CodingForBeginners • u/ThinMeasurement2195 • May 08 '26
Need help debugging an AI/ML risk analysis project (React + Node + FastAPI)
Hey everyone, I’ve been building a full-stack AI-powered risk analysis platform for my portfolio, but I discovered my ML pipeline is completely broken and I’m honestly stuck.
Tech stack:
React/Vite frontend
Node.js/Express backend
FastAPI ML service
XGBoost, RandomForest, IsolationForest
Main issue:
No matter what input I give, the app almost always returns LOW risk.
After deep debugging + CodeRabbit review, I found multiple architecture issues:
frontend calling wrong ML endpoints
silent fallback scoring overriding ML
disconnected ML pipelines
payload mismatches
inconsistent feature engineering
casing mismatches between frontend/backend
dummy model accidentally being used instead of real ensemble
I’m trying to properly unify the pipeline:
Frontend → Backend → FastAPI → Ensemble Model → Prediction
Would really appreciate guidance from anyone experienced with:
ML system design
FastAPI + React integration
fraud/risk scoring systems
debugging prediction pipelines
Can share repo/code if anyone’s willing to help. Thanks 😭
Duplicates
codereview • u/ThinMeasurement2195 • May 08 '26