ML Playground is an interactive Streamlit web application that allows you to explore, train, and evaluate machine learning models without writing extensive code. Whether you're a beginner, student, or experienced data scientist, this tool provides an easy and interactive way to experiment with different models and datasets.
β
Supports Classification & Regression: Train models on various datasets.
β
Built-in Datasets & Custom Uploads: Work with Iris, Titanic, Wine, Breast Cancer, Boston Housing, Diabetes, California Housing, and more!
β
Multiple ML Models: Train and compare algorithms from scikit-learn effortlessly.
β
Interactive Data Visualization: Understand data with insightful visualizations.
β
User-Friendly UI: No coding required β just select, train, and analyze!
πΉ Dataset Selection: Choose built-in datasets or upload your own CSV.
πΉ Problem Type Switching: Seamlessly switch between classification and regression.
πΉ Model Training: Select and train multiple models with a few clicks.
πΉ Performance Metrics: Evaluate models with accuracy, RMSE, RΒ² scores, and more.
πΉ Model Comparison: Visualize model performance for better decision-making.
πΉ Prediction Interface: Make predictions with trained models interactively.
πΉ Custom Settings: Adjust test set split, random state, and feature scaling.
1οΈβ£ Select Dataset & Problem Type (Classification or Regression)
2οΈβ£ Choose ML Models from scikit-learn
3οΈβ£ Train & Evaluate Models using performance metrics
4οΈβ£ Compare Results & Make Predictions
Ensure you have the following installed:
- Python 3.9+
- pip (Python package manager)
- Git (for cloning the repository)
$ git clone https://github.com/mohd-faizy/Machine-Learning-Playground.git
$ cd Machine-Learning-Playground
$ pip install -r requirements.txt
$ streamlit run ml_playground.py
The application will launch in your browser at http://localhost:8501/
.
ML-Playground/
βββ .vscode/ # VSCode settings (optional)
βββ assets/ # Images, icons, or other static assets
βββ saved_models/ # Folder for storing trained models
βββ venv/ # Python virtual environment (optional)
βββ ml_playground.py # Main Streamlit application file
βββ requirements.txt # Python dependencies
βββ README.md # Project documentation
-
Classification Datasets:
- Iris
- Titanic
- Wine
- Breast Cancer
- Digits
- Custom CSV Upload
-
Regression Datasets:
- Boston Housing
- Diabetes
- California Housing
- Custom CSV Upload
- Logistic Regression
- Decision Tree
- Random Forest
- k-Nearest Neighbors
- Support Vector Machine
- Gradient Boosting
- Neural Network (MLP)
- 1οΈβ£ Select Dataset & Problem Type β Choose from built-in datasets or upload a CSV.
- 2οΈβ£ Configure Settings β Adjust test size, random state, and scaling options.
- 3οΈβ£ Train Multiple Models β Select models and start training.
- 4οΈβ£ Analyze Performance β Get detailed metrics, charts, and comparisons.
- 5οΈβ£ Make Predictions β Use trained models to make real-time predictions.
Technology | Purpose |
---|---|
Streamlit | Interactive web UI |
scikit-learn | Machine learning models |
Pandas | Data manipulation |
NumPy | Numerical computations |
Matplotlib | Data visualization |
Seaborn | Statistical plotting |
Joblib | Model persistence |
Plotly | Interactive plots |
Want to improve this project? Follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature-name
) - Make changes and commit (
git commit -m "Added feature XYZ"
) - Push to your fork (
git push origin feature-name
) - Create a Pull Request π
This project is licensed under the MIT License. See the LICENSE file for details.
If you like this project, consider giving it a β on GitHub!
β€ If you have questions or feedback, feel free to reach out!!!