How rachit-star/predictive-analysis-project works
This is a batch Adult Census income-classification project. Running main.py loads and prepares census records, trains and evaluates a logistic-regression model, tests a custom profile, and saves the trained pipeline. The stages are implemented in one script, so the nodes distinguish responsibilities rather than separate modules. The correlation-pruning step modifies df after the train/test split; the shown training inputs remain X_train. The README documents the workflow, while the available source excerpt supports the specific calls and data transfers shown.
Main entry points: main.py Train classifier · model.pkl Saved pipeline · adult_merged.csv Census records
Components 16
Data preparation
- Load records
main.py - Clean and impute
main.py - Encode categories
main.py - Remove outliers
main.py - Scale features
main.py - Split dataset
main.py - Prune correlations
main.py
Exploration and evaluation
- Create plots
main.py - Plot images
- Evaluate predictions
main.py
Modeling and prediction
- Train classifier
main.py - Custom profile test
main.py - Saved pipeline
model.pkl
Other components
- Analyst
- Run workflow
main.py - Census records
adult_merged.csv
Connections 15
- Analyst → Run workflow: runs
README.md - Run workflow → Load records: starts
main.py - Load records → Census records: reads
main.py - Load records → Clean and impute: passes records
main.py - Clean and impute → Encode categories: passes cleaned data
main.py - Encode categories → Remove outliers: passes encoded data
main.py - Remove outliers → Scale features: passes filtered data
main.py - Scale features → Create plots: provides features
main.py - Create plots → Plot images: writes plots
main.py - Scale features → Split dataset: provides dataset
main.py - Split dataset → Prune correlations: provides correlation matrix
main.py - Split dataset → Train classifier: provides training data
main.py - Train classifier → Evaluate predictions: provides predictions
main.py - Train classifier → Custom profile test: predicts profile
main.py - Train classifier → Saved pipeline: saves pipeline
main.py