Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.set_page_config(page_title="ML Algorithms Overview", page_icon="๐", layout="wide")
|
| 4 |
+
|
| 5 |
+
st.markdown("<h1 style='color:#4CAF50;'>๐ Machine Learning Algorithms - Overview</h1>", unsafe_allow_html=True)
|
| 6 |
+
|
| 7 |
+
st.markdown("""
|
| 8 |
+
Welcome to the **Machine Learning Algorithms Explorer**!
|
| 9 |
+
|
| 10 |
+
This app provides detailed, beginner-friendly explanations of popular ML algorithms.
|
| 11 |
+
Each page will walk you through how the algorithm works, its use cases, formulas, evaluation metrics, and more. ๐
|
| 12 |
+
|
| 13 |
+
Hereโs a quick snapshot of what's inside:
|
| 14 |
+
""")
|
| 15 |
+
|
| 16 |
+
# Overview list
|
| 17 |
+
st.markdown("### ๐ง Algorithms Covered")
|
| 18 |
+
|
| 19 |
+
st.markdown("""
|
| 20 |
+
#### ๐น Linear Regression
|
| 21 |
+
- Used to predict continuous numeric values (e.g., house prices).
|
| 22 |
+
- It draws a best-fit line based on the relationship between independent and dependent variables.
|
| 23 |
+
|
| 24 |
+
#### ๐น Logistic Regression
|
| 25 |
+
- Used for binary/multi-class classification (e.g., spam vs. not spam).
|
| 26 |
+
- Uses the sigmoid function to model probabilities.
|
| 27 |
+
|
| 28 |
+
#### ๐น Decision Tree
|
| 29 |
+
- Tree-like structure that splits data using feature values.
|
| 30 |
+
- Easy to visualize and interpret.
|
| 31 |
+
|
| 32 |
+
#### ๐น Random Forest
|
| 33 |
+
- An ensemble of decision trees.
|
| 34 |
+
- Improves accuracy and reduces overfitting through voting/averaging.
|
| 35 |
+
|
| 36 |
+
#### ๐น K-Nearest Neighbors (KNN)
|
| 37 |
+
- Lazy learner that classifies based on the 'K' nearest data points.
|
| 38 |
+
- No training phase; works well with low-dimensional data.
|
| 39 |
+
|
| 40 |
+
#### ๐น Support Vector Machine (SVM)
|
| 41 |
+
- Finds the optimal hyperplane to separate classes.
|
| 42 |
+
- Works well in high-dimensional and complex data using kernel tricks.
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
Each page contains:
|
| 47 |
+
- โจ **Intuitive explanations**
|
| 48 |
+
- ๐งช **Mathematical equations**
|
| 49 |
+
- ๐ **Visual insights**
|
| 50 |
+
- โ๏ธ **Hyperparameter info**
|
| 51 |
+
- ๐ **Evaluation metrics**
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
""")
|