Skip to content

rajrbista/ml-solar-radiation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ML Model for Solar Radiation Prediction.

About

This work is a effort for develop a machine learnig model for predict the solar radiation.

In all solar industries the correct prediction of solar radiation is a key on design and operation proccess. Due the stochastic nature of solar radiation the existing empirical and mechanistic models are good aproximations but with considerable errors.

The model developed in this work was trained with a dataset with meteorological and geographical data of all country (Mexico). The data was obtained from PV-GIS trhough a scraper method and proccesed with the library PV-LIB developed by Sandia National Laboratories

Sections

  • mining_solar_info

    • This folder contains all logic for scraping the data and save the resulted datasets.
  • model

    • model/feature-engineering: Is a collection of notebooks with the feature engineering proccess.
    • model/model-selection: Is a a csollection of notebooks with the model selection procsess.
    • model/ghi: This folder contains all logic for tunning all best models, compare the result and generate plots and metadata of each result.

Dataset

Link to Kaggle

Results

The resultant model with the best performance was a:

XGBR (Xtreme Gradient Boosting Regretion)

Test Location
  • SantaAna (Sonora Mexico)
Training Results:
  • R2 = 0.9467821940386125
  • RMSE = 76.9138282703692
  • Training time: 7.2580 seconds
Test Results:
  • R2 = 0.9354960908553472
  • RMSE = 83.21137350309252
Plots
  • Real vs Predicted comparation_SantaAna_XGBR

  • Scatter Plot scattering_r2_XGBR_SantaAna

About

ML model to predict global solar radiation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%