Solaire Predictor is a small FastAPI service that predicts six metrics — electricity usage, GDP total, GDP growth, population, population growth, and electrification rate — for any country, at any future year. Trained on World Bank historical data with scikit-learn regression, deployed standalone on the Afrotomation cluster.
Pick a metric, country code, and target year. The form POSTs the same JSON your code would send.
# pick a metric to see the request
All prediction endpoints accept the same JSON body and return the same shape.
Body for every POST: {"country_code": "BFA", "year": "2030", "use_linear": true}.
Response: {"predicted_value": <float>}.