How prasanna-4278/rainfall-methodology-recommender works
The product is a rainfall-methodology recommendation system, exposed through both a web interface and a command-line workflow. Its principal path accepts an unseen weather dataset, loads and cleans it, profiles its characteristics, matches that profile against the knowledge base of four published methodologies, then trains the selected methodology to produce rainfall predictions and probabilities. A separate benchmark path compares the four adaptations and builds the knowledge base. The graph includes all indexed core modules; unsampled module behavior and relationships are limited to documented or indexed references.
Main entry points: main.py CLI Workflow · app.py API Backend · prediction.py Prediction Pipeline · comparison.py Benchmark Comparison
Components 21
User Interfaces
- Web Interface
templates/index.html - API Backend
app.py - CLI Workflow
main.py
Dataset Preparation
- Dataset Loader
src/data_loader.py - Cleaning and Target
src/data_cleaning.py - Dataset Profiler
src/dataset_profiler.py
Methodology Recommendation
- Suitability Recommender
src/methodology_recommender.py
Modeling and Evaluation
- Prediction Pipeline
src/prediction.py - Paper 1 Adaptation
src/methodology_paper1.py - Paper 2 Adaptation
src/methodology_paper2.py - Paper 3 Adaptation
src/methodology_paper3.py - Paper 4 Adaptation
src/methodology_paper4.py - Temporal Features
src/feature_engineering.py - Rainfall Metrics
src/evaluation.py
Benchmark Knowledge
- Methodology Knowledge Base
src/knowledge_base.py - Methodology Profiles
methodology_profiles.csv - Benchmark Comparison
src/comparison.py
Other components
- Researcher
- Web Browser
- Weather Dataset
- Prediction Output
results/predictions/rainfall_predictions.csv
Connections 36
- Researcher → Web Browser: uses
- Web Browser → Web Interface: opens
- Web Interface → API Backend: requests analysis
- Researcher → CLI Workflow: runs workflow
main.py - Weather Dataset → API Backend: uploads to
app.py - Weather Dataset → CLI Workflow: provides data
main.py - API Backend → Dataset Loader: loads dataset
app.py - API Backend → Cleaning and Target: cleans dataset
app.py - API Backend → Dataset Profiler: profiles dataset
app.py - API Backend → Suitability Recommender: requests recommendation
app.py - API Backend → Prediction Pipeline: runs prediction
app.py - CLI Workflow → Dataset Loader: loads dataset
main.py - CLI Workflow → Cleaning and Target: cleans dataset
main.py - CLI Workflow → Dataset Profiler: profiles dataset
main.py - CLI Workflow → Benchmark Comparison: runs benchmark
main.py - CLI Workflow → Methodology Knowledge Base: builds profiles
main.py - CLI Workflow → Suitability Recommender: requests recommendation
main.py - CLI Workflow → Prediction Pipeline: runs prediction
main.py - Suitability Recommender → Dataset Profiler: uses profile
src/methodology_recommender.py - Suitability Recommender → Methodology Profiles: reads
src/methodology_recommender.py - Methodology Knowledge Base → Methodology Profiles: writes
- Prediction Pipeline → Paper 1 Adaptation: dispatches to
src/prediction.py - Prediction Pipeline → Paper 2 Adaptation: dispatches to
src/prediction.py - Prediction Pipeline → Paper 3 Adaptation: dispatches to
src/prediction.py - Prediction Pipeline → Paper 4 Adaptation: dispatches to
src/prediction.py - Prediction Pipeline → Prediction Output: writes
src/prediction.py - Benchmark Comparison → Paper 1 Adaptation: benchmarks
src/comparison.py - Benchmark Comparison → Paper 2 Adaptation: benchmarks
src/comparison.py - Benchmark Comparison → Paper 3 Adaptation: benchmarks
src/comparison.py - Benchmark Comparison → Paper 4 Adaptation: benchmarks
src/comparison.py - Paper 1 Adaptation → Temporal Features: uses
src/methodology_paper1.py - Paper 4 Adaptation → Temporal Features: uses
src/methodology_paper4.py - Paper 1 Adaptation → Rainfall Metrics: evaluates with
src/methodology_paper1.py - Paper 2 Adaptation → Rainfall Metrics: evaluates with
src/methodology_paper2.py - Paper 3 Adaptation → Rainfall Metrics: evaluates with
src/methodology_paper3.py - Paper 4 Adaptation → Rainfall Metrics: evaluates with
src/methodology_paper4.py