File size: 2,287 Bytes
4b86a27 d9f32b3 4b86a27 b0e575a 47dbc5f 4b86a27 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import streamlit as st
st.set_page_config(page_title="ML Algorithms", layout="centered")
st.title("π€ Machine Learning Algorithms Overview")
st.markdown("""
This gives a quick overview of **core Machine Learning algorithms** and their types.
Explore **Supervised** and **Unsupervised** learning with common algorithms like **KNN**, **SVM**, **Decision Trees**, etc.
""")
ml_type = st.selectbox("Select Type of Machine Learning", ["Supervised Learning", "Unsupervised Learning"])
if ml_type == "Supervised Learning":
st.header("π Supervised Learning")
st.write("Supervised learning works with **labeled data**, where the goal is to predict a target (output) from input features.")
st.subheader("πΉ Common Algorithms:")
st.markdown("""
- **Linear Regression** β Predicts continuous values
- **Logistic Regression** β Binary or multiclass classification
- **K-Nearest Neighbors (KNN)** β Classifies based on closest data points
- **Support Vector Machine (SVM)** β Classifies using hyperplanes
- **Decision Tree** β Uses tree-based decision rules
- **Random Forest** β Ensemble of decision trees
""")
st.subheader("π οΈ Use Cases:")
st.markdown("""
- Email spam detection
- House price prediction
- Medical diagnosis
- Loan approval
""")
elif ml_type == "Unsupervised Learning":
st.header("π Unsupervised Learning")
st.write("Unsupervised learning deals with **unlabeled data**. It finds hidden patterns, groupings, or structures in the data.")
st.subheader("πΉ Common Algorithms:")
st.markdown("""
- **K-Means Clustering** β Groups data into clusters
- **Hierarchical Clustering** β Builds a tree of clusters
- **DBSCAN** β Density-based clustering
- **PCA (Principal Component Analysis)** β Reduces dimensionality
""")
st.subheader("π οΈ Use Cases:")
st.markdown("""
- Customer segmentation
- Market basket analysis
- Anomaly detection
""")
if st.button("π Go to ML Algorithms App"):
st.markdown("[Click here](https://huggingface.co/spaces/sree4411/ML_ALGORITHMS)")
st.markdown("---")
st.caption("Made with β€οΈ using Streamlit β for educational ML projects")
|