An interactive web-based tool to visualize how different classification and regression algorithms behave when their parameters change. Explore patterns, visualize data, and discover insights through beautiful, interactive visualizations.
- 6 algorithms: Linear Regression, Logistic Regression, KNN, Decision Tree, Random Forest, SVM
- Interactive hyperparameter tuning with sliders and dropdowns
- Real-time visualization of decision boundaries, accuracy curves, and feature importance
- Multiple toy datasets (moons, circles, iris)
- Clean, responsive UI with dark mode support
- Frontend: React.js + Tailwind CSS + Framer Motion + Plotly.js
- Backend: FastAPI + scikit-learn + NumPy
- Communication: REST API
- Node.js (v16+)
- Python (3.8+)
- npm or yarn
cd backend
pip install -r requirements.txt
python app.pyBackend runs on http://localhost:8000
cd frontend
npm install
npm run devFrontend runs on http://localhost:5173
GET /datasets- List available datasetsPOST /train- Train model and get visualization dataGET /health- Health check
- Select a dataset from the dropdown
- Choose an algorithm
- Adjust hyperparameters using sliders
- Click "Run Model" to see visualizations
- Compare algorithms side-by-side (optional)
ml-visualizer/
├── frontend/ # React application
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ └── utils/
│ └── package.json
├── backend/ # FastAPI application
│ ├── app.py
│ ├── models/
│ ├── utils/
│ └── requirements.txt
└── README.md
MIT