How amityadav08/ml_projects_submission works
1. Repository shape
This is a portfolio-style monorepo of independent machine learning exercises, not a single integrated application. Each project lives in its own top-level folder, with its own script, data, and README. There is no shared library layer or cross-project runtime coupling.
2. Top-level structure
The root contains a global README.md describing the portfolio, plus a metrics/metrics_summary.csv file that acts as a lightweight results index across projects. The rest of the repo is split into Project2_... through Project8_..., each representing a separate analytical pipeline.
3. Common project pattern
Most projects follow the same architecture:
input data in data/ → single Python entry script → model/analysis output.
The Python files are the primary executable artifacts, and the bundled data files are local datasets rather than remote services or databases.
4. Project 2: GDP vs CO2 analysis
gdp_analysis.py is an exploratory data analysis pipeline over World Bank-style indicator data (Indicators.bz2). It focuses on pandas-based data wrangling, correlation analysis, and visualization. This project is analysis-only; it does not produce a predictive model.
5. Project 3: Geographic overlays
geo_visualization.py combines indicator data with world-countries.json to generate interactive choropleth maps using Folium. The important boundary here is between tabular indicators and geographic geometry: the script joins them to create a browser-rendered map artifact rather than a numeric model.
6. Projects 4 and 8: sentiment classification
Both sentiment projects consume the same text corpus format (full_set.txt) but use different classifiers:
- Project 4: logistic regression with text preprocessing and feature extraction
- Project 8: support vector machine classification with tuning/validation
The shared architectural pattern is NLP preprocessing → bag-of-words/CountVectorizer-style features → supervised classifier → accuracy/error reporting.
7. Project 5: weather decision tree
weather_classifier.py reads data_weather.csv and builds a binary classification workflow with a decision tree. The key boundary is feature selection from morning measurements into a supervised prediction target. This is a classic tabular ML pipeline with model evaluation built in.
8. Project 6: handwritten digit recognition
digit_recognition.py uses NumPy arrays (train_data.npy, train_labels.npy, test_data.npy, test_labels.npy) for image classification with K-nearest neighbors. The architecture here is data-array driven rather than CSV/text based, and the workflow depends on distance-based classification over flattened image vectors.
9. Project 7: weather clustering
weather_clustering.py uses weather.zip as the input source for an unsupervised learning pipeline. Unlike the classification projects, there is no label boundary; the script groups observations using K-means and evaluates structure with cluster-quality metrics such as inertia and silhouette score.
10. Shared tooling and libraries
Across the repo, the dominant runtime is Python with pandas, NumPy, scikit-learn, matplotlib, and Folium. The repository emphasizes local, file-based execution rather than services, APIs, or notebooks. Model selection, evaluation, and visualization are embedded in the individual scripts.
11. Data flow boundary
Data is always stored inside each project folder, which keeps each experiment self-contained. Inputs are read from the project’s data/ directory, transformed in-memory, and then either visualized, classified, or clustered. There is no central data warehouse or shared preprocessing service.
12. What an architecture diagram should show
A useful diagram would depict:
- a root portfolio layer
- seven isolated project pipelines
- per-project local datasets
- per-project single Python execution units
- outputs split into visualizations, model metrics, or interactive map artifacts
- a small cross-project metrics summary at the root
The main architectural idea is independence: each folder is a standalone ML experiment with its own data modality and algorithmic focus.
Main entry points: README.md Portfolio · metrics_summary.csv Metrics CSV · Project2_GDP_CO2_Analysis GDP vs CO2 · Project5_Weather_DecisionTree Weather tree
Components 23
Portfolio
Top-level repository overview and shared results index.
- Portfolio · Repository entry point and project index.
README.md
Tabular ML
CSV and numeric-array based supervised and unsupervised pipelines.
- GDP vs CO2 · Exploratory analysis pipeline for GDP and CO2 indicators.
Project2_GDP_CO2_Analysis - Indicator data · World Bank-style indicator source file.
Project2_GDP_CO2_Analysis/data/Indicators.bz2 - EDA script · Performs wrangling, correlation analysis, and plotting.
Project2_GDP_CO2_Analysis/gdp_analysis.py - Weather tree · Supervised tabular classification with a decision tree.
Project5_Weather_DecisionTree - Weather CSV · Weather measurements and target labels.
Project5_Weather_DecisionTree/data/data_weather.csv - Tree script · Selects features and trains a decision tree classifier.
Project5_Weather_DecisionTree/weather_classifier.py - Weather KMeans · Unsupervised clustering pipeline for weather observations.
Project7_Weather_KMeans - Weather zip · Compressed weather source used for clustering.
Project7_Weather_KMeans/data/weather.zip - KMeans script · Clusters observations and reports quality metrics.
Project7_Weather_KMeans/weather_clustering.py
Geospatial
Indicator data joined with geographic boundaries for map rendering.
- Geo overlays · Geographic visualization pipeline for indicator data.
Project3_GeoOverlays - Geo data · Indicator table and country geometry used for mapping.
Project3_GeoOverlays/data - Map script · Builds interactive choropleth maps with Folium.
Project3_GeoOverlays/geo_visualization.py
Text ML
Sentiment classification pipelines over a shared text corpus.
- Sentiment LR · Text classification pipeline using logistic regression.
Project4_Sentiment_Logistic - Text corpus · Shared sentiment corpus input.
Project4_Sentiment_Logistic/data/full_set.txt - LR script · Preprocesses text, extracts features, and fits logistic regression.
Project4_Sentiment_Logistic/sentiment_analysis.py - Sentiment SVM · Text classification pipeline using an SVM.
Project8_Sentiment_SVM - Text corpus · Shared sentiment corpus input.
Project8_Sentiment_SVM/data/full_set.txt - SVM script · Preprocesses text, extracts features, and tunes an SVM classifier.
Project8_Sentiment_SVM/svm_classifier.py
Image ML
Digit recognition over NumPy image arrays.
- Digit KNN · Image classification pipeline using K-nearest neighbors.
Project6_Handwritten_KNN - Digit arrays · Train and test NumPy arrays for handwritten digits.
Project6_Handwritten_KNN/data - KNN script · Runs distance-based digit recognition over flattened vectors.
Project6_Handwritten_KNN/digit_recognition.py
Reporting
Cross-project result summaries at the repository root.
- Metrics CSV · Cross-project results summary.
metrics/metrics_summary.csv
Connections 29
- Portfolio → Metrics CSV: indexes · Repository-level summary of experiment results.
- Portfolio → GDP vs CO2: contains · Standalone project folder.
- GDP vs CO2 → Indicator data: reads · Loads indicator data from the local data directory.
- GDP vs CO2 → EDA script: executes · Single analysis entry point.
- EDA script → Metrics CSV: contributes · Outputs results that can be summarized at the root.
- Portfolio → Geo overlays: contains · Standalone project folder.
- Geo overlays → Geo data: reads · Combines indicators with country geometry.
- Geo overlays → Map script: executes · Single visualization entry point.
- Map script → Geo data: joins · Matches tabular indicators to geographic boundaries.
- Portfolio → Sentiment LR: contains · Standalone project folder.
- Sentiment LR → Text corpus: reads · Consumes the sentiment corpus.
- Sentiment LR → LR script: executes · Single NLP training and evaluation entry point.
- LR script → Metrics CSV: reports · Accuracy and error results can be summarized.
- Portfolio → Weather tree: contains · Standalone project folder.
- Weather tree → Weather CSV: reads · Loads tabular weather measurements.
- Weather tree → Tree script: executes · Single supervised learning entry point.
- Tree script → Metrics CSV: reports · Model evaluation results.
- Portfolio → Digit KNN: contains · Standalone project folder.
- Digit KNN → Digit arrays: reads · Loads NumPy arrays for train and test splits.
- Digit KNN → KNN script: executes · Single digit recognition entry point.
- KNN script → Metrics CSV: reports · Classification performance summaries.
- Portfolio → Weather KMeans: contains · Standalone project folder.
- Weather KMeans → Weather zip: reads · Loads the weather archive input.
- Weather KMeans → KMeans script: executes · Single unsupervised learning entry point.
- KMeans script → Metrics CSV: reports · Cluster metrics and diagnostics.
- Portfolio → Sentiment SVM: contains · Standalone project folder.
- Sentiment SVM → Text corpus: reads · Consumes the sentiment corpus.
- Sentiment SVM → SVM script: executes · Single SVM training and evaluation entry point.
- SVM script → Metrics CSV: reports · Accuracy and validation results.