Spaces:
Sleeping
Sleeping
Update pages/8Model Training.py
Browse files- pages/8Model Training.py +47 -64
pages/8Model Training.py
CHANGED
|
@@ -93,74 +93,57 @@ st.markdown("""
|
|
| 93 |
|
| 94 |
st.markdown("<h3 style='color:#2a52be;'>Types of Machine Learning Algorithms</h3>", unsafe_allow_html=True)
|
| 95 |
|
| 96 |
-
# 4
|
| 97 |
col1, col2, col3, col4 = st.columns(4)
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
<h4 style='color:#BB3385; text-align:center;'>Supervised</h4>
|
| 103 |
-
<p>- Linear Regression</p>
|
| 104 |
-
<p>- Logistic Regression</p>
|
| 105 |
-
<p>- Decision Tree</p>
|
| 106 |
-
<p>- Random Forest</p>
|
| 107 |
-
<p>- Extra Trees</p>
|
| 108 |
-
<p>- K-Nearest Neighbors (KNN)</p>
|
| 109 |
-
<p>- Support Vector Machine (SVM)</p>
|
| 110 |
-
<p>- Naive Bayes</p>
|
| 111 |
-
<p>- Gradient Boosting</p>
|
| 112 |
-
<p>- XGBoost</p>
|
| 113 |
-
<p>- AdaBoost</p>
|
| 114 |
-
<p>- CatBoost</p>
|
| 115 |
-
<p>- LightGBM</p>
|
| 116 |
-
</div>
|
| 117 |
-
""", unsafe_allow_html=True)
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
with col2:
|
| 120 |
-
st.markdown(""
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
<p>- Autoencoders (unsupervised use)</p>
|
| 132 |
-
<p>- Apriori Algorithm</p>
|
| 133 |
-
<p>- Eclat Algorithm</p>
|
| 134 |
-
</div>
|
| 135 |
-
""", unsafe_allow_html=True)
|
| 136 |
-
|
| 137 |
with col3:
|
| 138 |
-
st.markdown(""
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
<p>- Label Spreading</p>
|
| 144 |
-
<p>- Semi-Supervised Support Vector Machine (S3VM)</p>
|
| 145 |
-
<p>- Graph-Based Methods</p>
|
| 146 |
-
<p>- Semi-Supervised K-Means</p>
|
| 147 |
-
</div>
|
| 148 |
-
""", unsafe_allow_html=True)
|
| 149 |
|
|
|
|
| 150 |
with col4:
|
| 151 |
-
st.markdown(""
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
<p>- Dueling DQN</p>
|
| 159 |
-
<p>- REINFORCE Algorithm</p>
|
| 160 |
-
<p>- Actor-Critic Methods</p>
|
| 161 |
-
<p>- Proximal Policy Optimization (PPO)</p>
|
| 162 |
-
<p>- Deep Deterministic Policy Gradient (DDPG)</p>
|
| 163 |
-
<p>- Advantage Actor Critic (A2C)</p>
|
| 164 |
-
<p>- Soft Actor Critic (SAC)</p>
|
| 165 |
-
</div>
|
| 166 |
-
""", unsafe_allow_html=True)
|
|
|
|
| 93 |
|
| 94 |
st.markdown("<h3 style='color:#2a52be;'>Types of Machine Learning Algorithms</h3>", unsafe_allow_html=True)
|
| 95 |
|
| 96 |
+
# Row of 4 ML types
|
| 97 |
col1, col2, col3, col4 = st.columns(4)
|
| 98 |
|
| 99 |
+
# Helper function to navigate
|
| 100 |
+
def nav_to(page_name):
|
| 101 |
+
st.session_state.current_page = page_name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
+
# Supervised
|
| 104 |
+
with col1:
|
| 105 |
+
st.markdown("<h4 style='text-align: center; color:#BB3385;'>Supervised</h4>", unsafe_allow_html=True)
|
| 106 |
+
if st.button("Linear Regression"):
|
| 107 |
+
nav_to("Linear Regression")
|
| 108 |
+
if st.button("Logistic Regression"):
|
| 109 |
+
nav_to("Logistic Regression")
|
| 110 |
+
if st.button("Decision Tree"):
|
| 111 |
+
nav_to("Decision Tree")
|
| 112 |
+
if st.button("Random Forest"):
|
| 113 |
+
nav_to("Random Forest")
|
| 114 |
+
if st.button("KNN"):
|
| 115 |
+
nav_to("KNN")
|
| 116 |
+
if st.button("SVM"):
|
| 117 |
+
nav_to("SVM")
|
| 118 |
+
if st.button("Naive Bayes"):
|
| 119 |
+
nav_to("Naive Bayes")
|
| 120 |
+
|
| 121 |
+
# Unsupervised
|
| 122 |
with col2:
|
| 123 |
+
st.markdown("<h4 style='text-align: center; color:#BB3385;'>Unsupervised</h4>", unsafe_allow_html=True)
|
| 124 |
+
if st.button("K-Means"):
|
| 125 |
+
nav_to("K-Means")
|
| 126 |
+
if st.button("DBSCAN"):
|
| 127 |
+
nav_to("DBSCAN")
|
| 128 |
+
if st.button("PCA"):
|
| 129 |
+
nav_to("PCA")
|
| 130 |
+
if st.button("Apriori"):
|
| 131 |
+
nav_to("Apriori")
|
| 132 |
+
|
| 133 |
+
# Semi-Supervised
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
with col3:
|
| 135 |
+
st.markdown("<h4 style='text-align: center; color:#BB3385;'>Semi-Supervised</h4>", unsafe_allow_html=True)
|
| 136 |
+
if st.button("Self-Training"):
|
| 137 |
+
nav_to("Self-Training")
|
| 138 |
+
if st.button("Label Propagation"):
|
| 139 |
+
nav_to("Label Propagation")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
+
# Reinforcement
|
| 142 |
with col4:
|
| 143 |
+
st.markdown("<h4 style='text-align: center; color:#BB3385;'>Reinforcement</h4>", unsafe_allow_html=True)
|
| 144 |
+
if st.button("Q-Learning"):
|
| 145 |
+
nav_to("Q-Learning")
|
| 146 |
+
if st.button("SARSA"):
|
| 147 |
+
nav_to("SARSA")
|
| 148 |
+
if st.button("DQN"):
|
| 149 |
+
nav_to("DQN")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|