Photovoltaic per site modeling
Project description
pv-site-prediction
This repo contains code to train and evaluate pv-site models.
Organisation of the repo
.
├── exp_reports # Experiment reports - markdown notes about experiments we have made
├── exp_results # Default output for the {train,eval}_model.py scripts
├── notebooks # Diverse notebooks
├── data # Placeholder for data files
└── psp # Main python package
├── clients # Client specific code
├── data_sources # Data sources (PV, NWP, Satellite, etc.)
├── exp_configs # Experimentation configs - a config defines the different options for
│ # training and evaluation models. This directory contains many ready
│ # configs where the paths points to the data on Leonardo.
├── models # The machine learning code
├── scripts # Scripts (entry points)
└── tests # Unit tests
Training and evaluating a model
poetry run python psp/scripts/train_model.py \
--exp-config-name test_config1 \
-n test
poetry run python psp/scripts/eval_model.py \
-n test
# This will have generated a model and test results in `exp_results/test`.
# You can then look at the results in the `expriment_analysis.ipynb` and
# `sample_analysis.ipynb` notebooks by setting EXP_NAMES=["test"] in the first cells.
# Call the scripts with `--help` to see more options, in particular to run on more than one CPU.
# The script run_exp.sh can be used to train and then evaluate a model, for example
./run_exp.sh exp_config_to_use name_for_exp
Prerequisites
Development
# Installation of the dependencies.
poetry install
# Formatting
make format
# Linting
make lint
# Running the tests.
make test
# Starting the jupyter notebooks.
make notebook
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pv_site_prediction-0.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | decac85b66e4a4797bda89314064d96e3d5af33ee9a3733998d73632e92cf16e |
|
MD5 | 911f4ffcc44791b20d53173dc18c0899 |
|
BLAKE2b-256 | fa8f103b497355bc035e73da97e5b17bc60a81db3871bfe0ac4d90429a222ab7 |
Close
Hashes for pv_site_prediction-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3361aad5da415e11b4754b57ab4a9ed4d092879e678ac6d03b6b54cb81d296fe |
|
MD5 | d31a79c4a177ab701a8b0d46d8ea4cce |
|
BLAKE2b-256 | 3fa46ac9ce62d31ef32d2fc005ffa1fe7c98e1abed45fa5f2459816be22d5048 |