How vasaviosc/ai-ml works
This repository is a collection of hands-on AI/ML projects, rather than one integrated application. Its visible user-facing workflows are house-price prediction through a Streamlit form and spam classification through a command-line prompt; the spam project also includes model training and evaluation. The house training notebook is present but unsampled, so its connections to the dataset and saved model are not asserted. The spam training and prediction scripts refer to a model file that is not present in the tree.
Main entry points: src/predict.py Prediction form · src/predict.py Message prompt · house_price_model.pkl Price model · train.py Model training
Components 15
House-price prediction
- Prediction form
house_price_prediction/src/predict.py - Feature preparation
house_price_prediction/src/predict.py - Price model
house_price_prediction/models/house_price_model.pkl - Feature columns
house_price_prediction/models/feature_columns.pkl - Price result
house_price_prediction/src/predict.py - Model training
house_price_prediction/src/train.ipynb - Housing data
house_price_prediction/data.csv
Spam classification
- Model training
spam-email/src/train.py - Labeled messages
spam-email/data/spam.csv - Classifier artifact
- Message prompt
spam-email/src/predict.py - Spam classification
spam-email/src/predict.py - Label and confidence
spam-email/src/predict.py
Other components
- House-price user
- Message sender
Connections 14
- House-price user → Prediction form: enters details
house_price_prediction/src/predict.py - Prediction form → Feature preparation: prepares inputs
house_price_prediction/src/predict.py - Feature preparation → Feature columns: aligns columns
house_price_prediction/src/predict.py - Prediction form → Price model: loads model
house_price_prediction/src/predict.py - Feature preparation → Price model: predicts price
house_price_prediction/src/predict.py - Prediction form → Price result: displays prediction
house_price_prediction/src/predict.py - Housing data → Model training
- Model training → Price model
- Model training → Labeled messages: reads messages
spam-email/src/train.py - Model training → Classifier artifact: saves classifier
spam-email/src/train.py - Message sender → Message prompt: enters message
spam-email/src/predict.py - Message prompt → Classifier artifact: loads classifier
spam-email/src/predict.py - Message prompt → Spam classification: classifies message
spam-email/src/predict.py - Spam classification → Label and confidence: prints label
spam-email/src/predict.py