How jrdittenber/project1aiml1013_rosestatecollege works
This is a supervised telco-customer-churn ML application. Its main workflow is a training pipeline that ingests customer records, validates and transforms them, trains and evaluates a classifier, then pushes an accepted model to S3; a separate prediction workflow accepts customer features and returns churn predictions. The graph preserves the major stages and the model-serving/storage layers. Evidence is limited to the README, SOURCE INDEX, and shown excerpts; links for unsampled implementation details are omitted or marked unverified.
Main entry points: training_pipeline.py Training orchestrator · s3_estimator.py Model estimator · aws_storage.py S3 storage · app.py Web application
Components 21
Application entrypoints
- Web application
app.py
Model training
- Training orchestrator
telco_churn/pipeline/training_pipeline.py - Data ingestion
telco_churn/components/data_ingestion.py - Data validation
telco_churn/components/data_validation.py - Data transformation
telco_churn/components/data_transformation.py - Model trainer
telco_churn/components/model_trainer.py - Model evaluation
telco_churn/components/model_evaluation.py - Model pusher
telco_churn/components/model_pusher.py
Prediction serving
- Prediction pipeline
telco_churn/pipeline/prediction_pipeline.py - Feature input
telco_churn/pipeline/prediction_pipeline.py - Model estimator
telco_churn/entity/s3_estimator.py - Preprocess and predict
telco_churn/entity/estimator.py
Storage and configuration
- Mongo extraction
telco_churn/database_access/mongo_extract.py - Mongo connection
telco_churn/configuration/mongo_db_connect.py - S3 storage
telco_churn/cloud_storage/aws_storage.py - AWS connection
telco_churn/configuration/aws_connection.py
Pipeline contracts
- Stage artifacts
telco_churn/entity/artifact_entity.py - Stage configuration
telco_churn/entity/config_entity.py
Other components
- User
- MongoDB
- Amazon S3
Connections 22
- User → Web application: submits request
app.py - Web application → Training orchestrator: starts training
app.py - Web application → Prediction pipeline: requests prediction
app.py - Training orchestrator → Data ingestion: runs ingestion
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Data validation: runs validation
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Data transformation: runs transformation
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Model trainer: runs training
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Model evaluation: runs evaluation
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Model pusher: runs publishing
telco_churn/pipeline/training_pipeline.py - Data ingestion → Mongo extraction: reads records
telco_churn/components/data_ingestion.py - Mongo extraction → Mongo connection: uses connection
telco_churn/database_access/mongo_extract.py - Mongo extraction → MongoDB: fetches collection
- Model pusher → S3 storage: uploads model
telco_churn/components/model_pusher.py - Model evaluation → Model estimator: checks model
telco_churn/components/model_evaluation.py - Model estimator → S3 storage: loads model
telco_churn/entity/s3_estimator.py - S3 storage → AWS connection: uses client
telco_churn/cloud_storage/aws_storage.py - S3 storage → Amazon S3: reads and writes
- Prediction pipeline → Feature input: formats features
telco_churn/pipeline/prediction_pipeline.py - Prediction pipeline → Model estimator: requests prediction
telco_churn/pipeline/prediction_pipeline.py - Model estimator → Preprocess and predict: delegates prediction
telco_churn/entity/s3_estimator.py - Training orchestrator → Stage artifacts: passes stage results
telco_churn/pipeline/training_pipeline.py - Training orchestrator → Stage configuration: configures stages
telco_churn/pipeline/training_pipeline.py