How aditya20-b/shaastra-encrypton-2024 works
Main System Components
• Frontend (Next.js application)
• Backend (Python Flask application)
• ML Model System
Detailed Component Breakdown
A. Frontend Layer (Next.js):
• User Interface Components (from _components folder)
• API Routes
• Pages (main and leaderboard)
Use blue coloring for frontend components.
B. Backend Layer (Python):
• API endpoints
• Data processing logic
Use green coloring for backend components.
C. ML/Analysis Layer:
• Decision Tree Classifier
• Mathematical Model
Use orange coloring for ML components.
D. Data Storage:
• CSV data storage
• Model storage (model.pkl)
Use purple coloring for data storage.
Component Interactions
• User → Frontend: User interactions
• Frontend → Backend: API calls
• Backend → ML System: Investment analysis requests
• ML System → Dataset: Data retrieval
• ML System → Backend: Analysis results
• Backend → Frontend: Response data
Specific Elements
A. Frontend Components:
• Relationship between:
• Search component
• LeaderBoard components
• Criteria display
• Bento display
B. ML Pipeline:
• Dual analysis approach:
• Decision Tree path (binary output)
• Mathematical model path (probability score)
Technical Details to Highlight
Annotations showing:
• Next.js frontend with TypeScript
• Flask backend
• Python-based ML system
• CSV-based data storage
• Key calculation factors:
• Capital invested
• Profit/Emission ratio
• Emission Reduction Goal
• Cost factors
• Industry trends
• Climate risk factors