mohd-faizy / Machine-Learning-Playground

Machine Learning Playground

Repository from Github https://github.commohd-faizy/Machine-Learning-PlaygroundRepository from Github https://github.commohd-faizy/Machine-Learning-Playground

πŸ€– ML Playground: Explore, Train, and Evaluate Machine Learning Models with Ease πŸš€

author Python 3.9+ Streamlit scikit-learn Pandas Seaborn Matplotlib Joblib Plotly License


🌟 Overview

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.

πŸ”₯ Why Use ML Playground?

βœ… 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!


🎯 Key Features

πŸ”Ή 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.


πŸ–₯️ Demo Screenshots

πŸ“Œ UI Preview

πŸš€ Try it Now

ML Playground UI

πŸ“Œ Application Workflow

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


⚑ Installation & Setup

πŸ”§ Prerequisites

Ensure you have the following installed:

  • Python 3.9+
  • pip (Python package manager)
  • Git (for cloning the repository)

πŸ“₯ Clone the Repository

$ git clone https://github.com/mohd-faizy/Machine-Learning-Playground.git
$ cd Machine-Learning-Playground

πŸ“¦ Install Dependencies

$ pip install -r requirements.txt

πŸš€ Run the Application

$ streamlit run ml_playground.py

The application will launch in your browser at http://localhost:8501/.


πŸ“‚ Directory Structure

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

πŸš€ Supported Datasets & Models

πŸ“Š Built-in Datasets

  • Classification Datasets:

    • Iris
    • Titanic
    • Wine
    • Breast Cancer
    • Digits
    • Custom CSV Upload
  • Regression Datasets:

    • Boston Housing
    • Diabetes
    • California Housing
    • Custom CSV Upload

πŸ€– Available Machine Learning Models

  • Logistic Regression
  • Decision Tree
  • Random Forest
  • k-Nearest Neighbors
  • Support Vector Machine
  • Gradient Boosting
  • Neural Network (MLP)

πŸ”¬ How It Works

  • 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.

πŸ“Œ Technologies Used

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

🌍 Contributing

Want to improve this project? Follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Make changes and commit (git commit -m "Added feature XYZ")
  4. Push to your fork (git push origin feature-name)
  5. Create a Pull Request πŸš€

βš– License

This project is licensed under the MIT License. See the LICENSE file for details.


❀️ Support

If you like this project, consider giving it a ⭐ on GitHub!

πŸ”—Connect with me

➀ If you have questions or feedback, feel free to reach out!!!


About

Machine Learning Playground

License:MIT License


Languages

Language:Python 100.0%