Delete pages/5_ML ALGORITHMS
Browse files- pages/5_ML ALGORITHMS +0 -56
pages/5_ML ALGORITHMS
DELETED
|
@@ -1,56 +0,0 @@
|
|
| 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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|