feat: Add v3 LightGBM solar forecast model with enhanced feature engineering - #341
Open
Raakshass wants to merge 6 commits into
Open
feat: Add v3 LightGBM solar forecast model with enhanced feature engineering#341Raakshass wants to merge 6 commits into
Raakshass wants to merge 6 commits into
Conversation
Contributor
Author
CI Status NoteThe lint-typecheck failures are caused by extra files that were inadvertently included in this commit. This will be addressed after the following dependent PRs are merged:
Plan: Once these PRs merge, I will:
Waiting for dependency merges before proceeding. |
This was referenced Feb 7, 2026
…neering This PR introduces a new LightGBM-based solar power prediction model (v3) with improvements over the existing XGBoost v2 model. ## New Files - quartz_solar_forecast/forecasts/v3_lightgbm.py: LightGBMSolarPredictor class - scripts/train_v3_model.py: Training script with data loading and evaluation - quartz_solar_forecast/models/model-v3.0.pkl: Pre-trained model ## Feature Engineering Improvements 1. **Cyclical Time Encoding** - Handles time discontinuities properly: - hour_sin/hour_cos for time-of-day - day_sin/day_cos for day-of-year - month_sin/month_cos for seasonality 2. **Panel Features**: - Orientation sin/cos encoding (handles 0/360 wrap-around) - Tilt factor for effective area calculation 3. **Weather Features**: - Temperature, cloud cover (low/mid/high) - Direct normal and diffuse radiation - Wind speed and precipitation ## Why LightGBM? - Faster training than XGBoost for large datasets - Better handling of categorical features - Leaf-wise tree growth for improved accuracy Addresses openclimatefix#30
Raakshass
force-pushed
the
feature/v3-lightgbm-model
branch
from
February 16, 2026 19:12
8da06de to
40886a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
This PR introduces a v3 LightGBM-based solar power prediction model with enhanced feature engineering, addressing the New Model Challenge (Issue #30).
Why LightGBM?
New Files
Feature Engineering Improvements
1. Cyclical Time Encoding
Handles time discontinuities properly (no more 23→0 hour jumps):
2. Panel Features
orientation_sin/orientation_cos- Handles 0°/360° wrap-aroundtilt_factor- Effective area calculation based on panel tilt3. Weather Features
Training Script Usage
Initial Results (synthetic data)
How Has This Been Tested?
Addresses #30
Checklist: