import streamlit as st
# Title and Introduction
st.markdown("""
Difference Between Machine Learning (ML) and Deep Learning (DL)
Learn how ML and DL differ in capabilities, requirements, and use cases!
""", unsafe_allow_html=True)
# Machine Learning Section
st.markdown("""
- Uses statistics to understand patterns in data and make predictions 📊.
- Can learn with less data 📉.
- Handles structured data; unstructured data must be converted to structured form 🔄.
- Requires less memory 🧠💾.
- Trains models in less time ⏱️.
- Can run efficiently on CPUs without requiring powerful hardware 🖥️.
""", unsafe_allow_html=True)
# Deep Learning Section
st.markdown("""
- Uses neural networks to mimic brain-like learning and decision-making 🧠.
- Requires large amounts of data for better accuracy 🍽️📊.
- Handles both structured and unstructured data like images, text, and audio 🖼️📝🎧.
- Requires more memory and storage 🧠💾.
- Takes more time to train due to complex calculations ⏱️.
- Needs GPUs and advanced hardware for efficient processing 🖥️💡.
""", unsafe_allow_html=True)
# Tabular Comparison
st.markdown("""
| Aspect |
Machine Learning (ML) |
Deep Learning (DL) |
| Definition |
Uses algorithms and statistics to learn from data. |
Uses neural networks to mimic brain-like decision-making. |
| Data Dependency |
Works well with smaller datasets. |
Requires large datasets for better accuracy. |
| Data Type |
Handles structured data only. |
Handles both structured and unstructured data. |
| Training Time |
Requires less time to train. |
Requires more time to train. |
| Hardware |
Can run on CPUs. |
Requires GPUs and advanced hardware. |
| Memory Requirement |
Uses less memory. |
Requires more memory and storage. |
""", unsafe_allow_html=True)