import streamlit as st # CSS style for the table css_style = """ """ # HTML code for the differences table html_code = """
Aspect Machine Learning (ML) Deep Learning (DL)
Definition A subset of AI focused on enabling systems to learn from data. A subset of ML that uses neural networks to process data.
Data Dependency Performs well on small to medium-sized datasets. Requires large datasets to perform effectively.
Model Complexity Uses simple algorithms like linear regression or decision trees. Utilizes complex architectures like CNNs and RNNs.
Computation Power Less computationally intensive. Highly computationally intensive, often requires GPUs.
Feature Engineering Feature engineering is essential for performance. Automatically learns features from data.
Applications Fraud detection, recommendation systems, etc. Image recognition, natural language processing, etc.
""" # Inject CSS into Streamlit st.markdown(css_style, unsafe_allow_html=True) # Render the HTML in Streamlit st.markdown(html_code, unsafe_allow_html=True)