sree4411 commited on
Commit
b4c2690
Β·
verified Β·
1 Parent(s): 53afc97

Update pages/5_ML ALGORITHMS

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