How alitahir-hide/ai-based-e-commerce-product-recommendation-and-categorization- works
This is a classroom e-commerce product categorization and recommendation prototype. Its main user workflow is to submit listing text or a shopper query through the browser or CLI, prepare catalogue text as TF-IDF features, then predict a department or rank existing catalogue rows by similarity. Separate paths support model evaluation and a PDF-style profile/ranking exercise; the full lab launcher runs Modules 1–5. The graph follows shown imports, calls and README descriptions; unsampled implementation details are omitted.
Main entry points: demo_predict_and_recommend.py CLI prediction demo · main.py Lab launcher · web_demo.py Streamlit demo · module_2.py Text and TF-IDF features
Components 13
User entry points
- Streamlit demo
web_demo.py - CLI prediction demo
demo_predict_and_recommend.py - Lab launcher
main.py - Predictions and ranked items
Catalogue preparation
- Product catalogue CSV
ecommerce_data.csv - Dataset ingestion
module_1.py - Text and TF-IDF features
module_2.py - TF-IDF snapshot
artifacts.npz
Prediction and evaluation
- Scratch classifiers
module_3.py - Metrics and validation
module_4.py - Terminal evaluation
train_and_evaluate.py
Recommendation and lab
- PDF profile ranking
module_5.py
Other components
- Student or shopper
Connections 23
- Student or shopper → Streamlit demo: submits request
README.md - Student or shopper → CLI prediction demo: submits request
README.md - Streamlit demo → CLI prediction demo: loads pipeline
web_demo.py - CLI prediction demo → Text and TF-IDF features: prepares features
demo_predict_and_recommend.py - Text and TF-IDF features → Dataset ingestion: loads dataset
module_2.py - Dataset ingestion → Product catalogue CSV: reads rows
module_1.py - Text and TF-IDF features → TF-IDF snapshot: saves snapshot
README.md - CLI prediction demo → Scratch classifiers: predicts category
demo_predict_and_recommend.py - CLI prediction demo → PDF profile ranking: ranks query
demo_predict_and_recommend.py - CLI prediction demo → Metrics and validation: formats report
demo_predict_and_recommend.py - Streamlit demo → PDF profile ranking: ranks query
web_demo.py - Streamlit demo → Scratch classifiers: evaluates models
web_demo.py - Terminal evaluation → Text and TF-IDF features: prepares features
train_and_evaluate.py - Terminal evaluation → Scratch classifiers: trains models
train_and_evaluate.py - Terminal evaluation → Metrics and validation: reports metrics
train_and_evaluate.py - Lab launcher → Dataset ingestion: runs stage
main.py - Lab launcher → Text and TF-IDF features: runs stage
main.py - Lab launcher → Scratch classifiers: runs stage
main.py - Lab launcher → Metrics and validation: runs stage
main.py - Lab launcher → PDF profile ranking: runs stage
main.py - Streamlit demo → Predictions and ranked items: displays results
web_demo.py - CLI prediction demo → Predictions and ranked items: prints results
demo_predict_and_recommend.py - PDF profile ranking → Predictions and ranked items: produces rankings
README.md