Regression · Energy · Streamlit

Solar Power Generation Prediction

Predicting a solar installation's power output from weather conditions, so a grid operator can plan supply and storage ahead of time.

End-to-end project

The problem

Solar output swings with sun angle, cloud cover and humidity. Under-forecasting means paying for unneeded backup power; over-forecasting means buying expensive power at short notice.

The data

2,920 three-hour periods with nine weather features (distance to solar noon, temperature, wind, sky cover, visibility, humidity, pressure) and the power generated.

Approach

  1. Cleaning and EDA

    Missing values and outliers treated; distance to solar noon (r = −0.75) and humidity (r = −0.52) have the strongest relationships.

  2. Model comparison

    Eight regressors on a 70/30 split.

  3. Tuning

    GridSearchCV over 243 Gradient Boosting configurations with 5-fold CV.

  4. Deployment

    A Streamlit app that takes weather inputs and returns predicted output.

What I found

The key insight

I report the cross-validated score alongside the single test split, because one lucky split can overstate how a model will perform in production.

Limitations & next steps

Tools