How p-ricer/p-rice works
P-RICE is a Philippine rice-price forecasting product: users choose a rice series and forecast horizon, then inspect the forecast, history, comparisons, and model explanation. The documented modeling workflow uses rice-price CSVs to evaluate XGBoost against ARIMA and a naive baseline, with SHAP explanations and exported results. The web client exposes those results through a dashboard. The server and notebook internals were not excerpted, so their implementation details and the handoff between them remain uncertain.
Main entry points: App.jsx Dashboard coordinator · P-RICE Model - All Rice Types (Monthly).ipynb Forecast and evaluation · api.js API client · TrendChart.jsx Trend chart
Components 17
Data inputs
- Rice price datasets
Model Development - External data fetchers
Model Development/data_pipeline
Forecast modeling
- Forecast and evaluation
Model Development/P-RICE Model - All Rice Types (Monthly).ipynb - Special rice analysis
Model Development/Local Special Rice - Model Development (with charts).ipynb - Forecast results
Model Development/P-RICE Results.xlsx
Dashboard interface
- Dashboard coordinator
web/client/src/App.jsx - API client
web/client/src/api.js - Rice type selector
web/client/src/components/RiceTypeSelector.jsx - Forecast card
web/client/src/components/ForecastCard.jsx - Trend chart
web/client/src/components/TrendChart.jsx - Comparison table
web/client/src/components/CompareTable.jsx - Model explanation
web/client/src/components/ModelInfoPanel.jsx - Product overview
web/client/src/components/AboutPage.jsx - Loading placeholders
web/client/src/components/Skeletons.jsx - Browser exports
web/client/src/utils/export.js
API service
- API server
web/server/server.mjs
Other components
- Dashboard user
Connections 15
- Rice price datasets → Forecast and evaluation: provides inputs
README.md - Forecast and evaluation → Forecast results: generates results
README.md - Dashboard user → Dashboard coordinator: uses dashboard
- Dashboard coordinator → API client: requests data
web/client/src/App.jsx - Dashboard coordinator → Rice type selector: renders
web/client/src/App.jsx - Dashboard coordinator → Forecast card: renders
web/client/src/App.jsx - Dashboard coordinator → Trend chart: renders
web/client/src/App.jsx - Dashboard coordinator → Comparison table: renders
web/client/src/App.jsx - Dashboard coordinator → Model explanation: renders
web/client/src/App.jsx - Dashboard coordinator → Product overview: renders
web/client/src/App.jsx - Dashboard coordinator → Loading placeholders: renders
web/client/src/App.jsx - Trend chart → Browser exports: uses
web/client/src/components/TrendChart.jsx - Comparison table → Browser exports: uses
web/client/src/components/CompareTable.jsx - API client → API server: calls API
- API server → Forecast results: serves forecasts