Skip to content

Latest commit

Β 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ML Science Explorer πŸ€–

An interactive HTML/JS interface demonstrating different machine learning models and applications in a collection of interactive dashboard displays.

πŸš€ Features

πŸ“Š Interactive ML Examples

  • 16 Complete ML Examples across 3 categories:
    • Supervised Learning (6 examples): Linear Regression, Logistic Regression, Decision Trees, Random Forest, SVM, Neural Networks
    • Unsupervised Learning (5 examples): K-Means, Hierarchical Clustering, PCA, DBSCAN, Autoencoders
    • Reinforcement Learning (5 examples): Q-Learning, DQN, Policy Gradient, Actor-Critic, Multi-Armed Bandit

🎯 Real-World Scenarios

Each example features engaging, realistic use cases:

  • πŸ‡ Vineyard Yield Prediction (Wine Industry)
  • πŸ‰ Dragon Egg Hatching (Fantasy/Gaming)
  • πŸ“Ί Streaming Content Recommendation
  • πŸ” Insurance Fraud Detection
  • β˜„οΈ Asteroid Composition Analysis (NASA)
  • πŸ₯ Medical Image Diagnosis
  • πŸ›οΈ Retail Customer Segmentation
  • 🧬 Evolutionary Tree Construction
  • 🎨 AI Art Style Analysis
  • πŸš” Crime Hotspot Mapping
  • βš›οΈ Quantum Data Denoising
  • πŸ€– Warehouse Robot Navigation
  • 🏎️ Virtual Racing AI
  • ⚑ Smart Grid Optimization
  • πŸ›°οΈ Space Station Robotics
  • πŸ’Š Clinical Trial Optimization

πŸ’Ύ Rich Data & Visualization

  • Mock Data Generators: Realistic datasets for each ML algorithm
  • Interactive Charts: Scatter plots, bar charts, line charts, pie charts, heatmaps
  • Data Tables: Paginated views with statistics
  • Algorithm Insights: Key points and real-world applications

🎨 Modern UI/UX

  • Responsive Design: Works on desktop, tablet, and mobile
  • Category Filtering: Browse by ML type (Supervised, Unsupervised, RL)
  • Search Functionality: Find examples by name or description
  • Smooth Navigation: Click any example card to explore in detail
  • Beautiful Animations: Smooth transitions and hover effects

πŸ—οΈ Architecture

πŸ“ Project Structure

ML-Science-w-React/
β”œβ”€β”€ index.html                          # Main application entry point
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Charts.js                   # Chart components using Chart.js
β”‚   β”‚   └── MLExamplePage.js           # Reusable page template
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   └── mockDataGenerators.js       # Data generation functions
β”‚   β”œβ”€β”€ examples/
β”‚   β”‚   └── specificExamples.js         # Specialized chart configurations
β”‚   └── utils/                          # Future utility functions
β”œβ”€β”€ README.md
└── LICENSE

πŸ› οΈ Technology Stack

  • React 18: Modern component-based UI framework
  • Chart.js 4: Interactive data visualization library
  • Tailwind CSS: Utility-first styling framework
  • Babel Standalone: In-browser JSX transformation
  • Vanilla JS: No build process required!

⚑ Key Components

πŸ“Š Chart Components (src/components/Charts.js)

  • ScatterPlot: For regression and classification visualization
  • BarChart: For categorical data and distributions
  • LineChart: For time series and trends
  • PieChart: For categorical distributions
  • Heatmap: For clustering and correlation analysis
  • MultiLineChart: For comparing multiple data series
  • DataStats: Statistical summary component

🎯 ML Example Page Template (src/components/MLExamplePage.js)

  • Overview Tab: Algorithm info, key points, use cases
  • Data Tab: Paginated data table with filtering
  • Visualization Tab: Interactive charts and plots
  • Insights Tab: Statistical analysis and algorithm explanations

πŸ”’ Mock Data Generators (src/data/mockDataGenerators.js)

  • Realistic data simulation for each ML algorithm
  • Configurable sample sizes and parameters
  • Built-in noise and variability for authenticity
  • Proper statistical distributions and correlations

πŸš€ Getting Started

1. Clone & Navigate

git clone https://github.com/SauceSlinger/ML-Science-w-React.git
cd ML-Science-w-React

2. Start Local Server

# Using Python 3
python3 -m http.server 3000

# Or using Python 2
python -m SimpleHTTPServer 3000

# Or using Node.js
npx http-server -p 3000

3. Open Browser

Navigate to http://localhost:3000

4. Explore!

  • Browse the 16 ML examples on the homepage
  • Click any example card to dive into detailed analysis
  • Use category filters and search to find specific algorithms
  • Explore the 4 tabs: Overview, Data, Visualization, Insights

πŸŽ“ Educational Value

🎯 Learning Objectives

  • Understand ML Categories: Clear distinction between supervised, unsupervised, and reinforcement learning
  • Real-World Applications: See how algorithms solve actual business problems
  • Data Visualization: Learn to interpret charts and identify patterns
  • Algorithm Comparison: Compare strengths and use cases across different approaches

πŸ‘₯ Target Audience

  • Students: Learning machine learning concepts and applications
  • Educators: Teaching ML through interactive examples
  • Data Scientists: Explaining algorithms to stakeholders
  • Business Analysts: Understanding ML capabilities and use cases

πŸ“š Extended Learning

Each example provides:

  • Algorithm fundamentals and how they work
  • Real-world use cases across industries
  • Key insights about when to use each approach
  • Interactive data exploration to see patterns
  • Statistical analysis of the generated datasets

πŸ”§ Customization

Adding New Examples

  1. Add your ML scenario to mlModulesContent in index.html
  2. Create data generator in src/data/mockDataGenerators.js
  3. Add chart configuration in src/examples/specificExamples.js
  4. Update the generateExampleData function to handle your new case

Styling & Themes

  • Modify Tailwind classes in component files
  • Update color schemes in the getCategoryColor functions
  • Add new animations and transitions in the CSS section

Data & Charts

  • Extend chart types in src/components/Charts.js
  • Modify data generation parameters for different scenarios
  • Add new statistical analysis features

🀝 Contributing

Contributions are welcome! Areas for improvement:

  • Additional ML algorithms and examples
  • More sophisticated data visualizations
  • Enhanced statistical analysis features
  • Mobile UX improvements
  • Accessibility enhancements

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments

Built with assistance from:

  • GitHub Copilot: AI-powered code completion
  • Gemini: Advanced AI assistance for architecture and optimization
  • Chart.js: Beautiful, responsive charts
  • React: Powerful component framework
  • Tailwind CSS: Rapid UI development

🎯 Ready to explore machine learning? Start your journey at http://localhost:3000!

About

An interactive HTML/JS interface demonstrating different machine learning models and applications in a collection of interactive dashboard Displays.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages