NeonSamurai commited on
Commit
e125ec3
·
verified ·
1 Parent(s): d0ef45e

Update stages/model_training.py

Browse files
Files changed (1) hide show
  1. stages/model_training.py +29 -5
stages/model_training.py CHANGED
@@ -1,5 +1,29 @@
1
- import streamlit as st
2
-
3
- def main():
4
- st.title("Model Training")
5
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def main():
4
+ st.title("Step 7: Model Selection and Training:robot_face:")
5
+
6
+ st.markdown("""
7
+
8
+ After preparing your data, it's time to **choose the right model** and **train** it. Here's the essential process:
9
+
10
+ :nerd_face:**Model Selection**:
11
+ - Pick a model that suits your data (classification, regression, etc.).
12
+ - Start simple (e.g., Logistic Regression) and explore complex ones (e.g., Random Forest, XGBoost).
13
+
14
+ :nut_and_bolt:**Training the Model**:
15
+ - Train the model on your training data.
16
+ - Use **cross-validation** to ensure it generalizes well.
17
+ - Fine-tune hyperparameters for better accuracy.
18
+
19
+ **Why it matters?**
20
+ The right model and proper training are crucial for accurate predictions. The goal is to make sure the model captures patterns from your data.
21
+
22
+ **Common Models**:
23
+ - **Linear Models**: Logistic Regression, Linear Regression
24
+ - **Tree-based Models**: Decision Trees, Random Forest, XGBoost
25
+ - **Deep Learning**: Neural Networks (for complex problems)
26
+ """)
27
+
28
+ st.divider()
29
+ main()