Spaces:
Sleeping
Sleeping
File size: 830 Bytes
15cfc3d c71bf8b 15cfc3d c71bf8b 15cfc3d c71bf8b 15cfc3d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | import streamlit as st
st.title("๐ง Model Training & Evaluation")
st.markdown("""
### ๐ ๏ธ **Text Vectorization**
Used **TF-IDF Vectorizer** with:
๐ข **max_features** = 10000 to limit dimensionality
---
### ๐ค **Model Selection**
Chose **Logistic Regression** as baseline model
Applied **GridSearchCV** to optimize parameters
Training pipeline saved using **pickle** for direct deployment
---
### ๐ **Model Evaluation**
๐ **Accuracy Achieved: 0.75**
**Key Metrics:**
**Accuracy** 0.75
**Precision** 0.81
**Recall** 0.77
**F1-Score** 0.75
This trained pipeline is now integrated into the final deployment page below.
---
""")
if st.button("Next"):
st.switch_page("pages/3_Deployment.py")
if st.button("Go to Data Overview"):
st.switch_page("pages/1_Data_Overview.py") |