Team Ai
Apppublic

SabraHsb/ML_DL_Algorithms_Explorer

sourceHugging Facemitupdated 5mo agoView on Hugging Face
1likes
App README

<div align="center">

๐Ÿค– ML Explorer

An all-in-one interactive playground for Machine Learning algorithms

![Python](https://python.org) ![Streamlit](https://streamlit.io) ![scikit-learn](https://scikit-learn.org) ![License: MIT](LICENSE)

๐Ÿš€ Live Demo on Hugging Face &nbsp;|&nbsp; ๐Ÿ“ฆ GitHub Repo

</div>


๐Ÿงญ What's Inside

AlgorithmTypeKey Features
โšก SVMClassificationKernel trick, margin visualization, support vectors
๐Ÿ“ˆ RegressionRegressionLinear, Polynomial, Ridge, Lasso, residual plots
๐ŸŒณ Decision Tree / RFClassificationDepth control, feature importance, ensemble power
๐Ÿ”ต K-MeansClustering (Unsupervised)Elbow curve, centroid animation, cluster explorer
๐Ÿ‘ฅ KNNClassificationK sweep, distance metrics, boundary visualization
๐Ÿง  Neural Network (MLP)ClassificationCustom architecture, loss curve, network diagram

โœจ Features

  • โ€”๐Ÿ“‚ Upload your own CSV โ€” pick feature columns and label column interactively
  • โ€”๐Ÿ“ฆ Built-in datasets โ€” Moons, Circles, Blobs, Iris, and more
  • โ€”๐ŸŽ›๏ธ Live hyperparameter tuning โ€” every parameter updates the plot in real time
  • โ€”๐Ÿ“Š Full evaluation โ€” confusion matrix, classification report, Rยฒ / RMSE for regression
  • โ€”๐ŸŽจ Navy dark theme โ€” clean, professional UI throughout

๐Ÿš€ Run Locally

bash
git clone https://github.com/YOUR_USERNAME/ml-explorer.git
cd ml-explorer
pip install -r requirements.txt
streamlit run app.py

Opens at http://localhost:8501 ๐ŸŽ‰


โ˜๏ธ Deploy to Hugging Face Spaces

One-click via GitHub import:

  1. 1.huggingface.co/new-space โ†’ SDK: Streamlit
  2. 2.Click Import from GitHub โ†’ paste your repo URL
  3. 3.Create Space โœ…

๐Ÿ“‚ CSV Upload Format

Any CSV with numeric columns works. Example:

sepal_length, sepal_width, species
5.1, 3.5, 0
4.9, 3.0, 1
...
  • โ€”Pick Feature 1, Feature 2, and Label column in the UI
  • โ€”Label must be binary or multi-class integers
  • โ€”For regression: pick one feature (X) and one target (Y)

๐Ÿ“ Project Structure

ml-explorer/
โ”œโ”€โ”€ app.py            # Single-file Streamlit app (~600 lines)
โ”œโ”€โ”€ requirements.txt  # Dependencies
โ””โ”€โ”€ README.md         # This file

๐Ÿ“ฆ Dependencies

streamlit>=1.28.0
numpy>=1.24.0
matplotlib>=3.7.0
scikit-learn>=1.3.0
pandas>=2.0.0
seaborn>=0.12.0

<div align="center">

Made with โค๏ธ using Streamlit & scikit-learn

</div>