Sentiment_Analysis / pages /2_Model_Training.py
Srikanth0804's picture
Update pages/2_Model_Training.py
c71bf8b verified
Raw History Blame Contribute Delete
830 Bytes
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")