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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ccfabc93b04ba12996b7aab90797bd2970d49cfc4012b69afc695689e151ce |
|
MD5 | e18390631653d81f85f25bd8c7f519ba |
|
BLAKE2b-256 | 7d46200f5c691e586be4646b7d2d27d203654dc8774e2b60a1147c21192f7435 |
Close
Hashes for pv_site_prediction-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35962e6a135c4f01ba4432df2549839bb4242eb2d5db2567446b420f330f0517 |
|
MD5 | 0f0cefced2c80ee120d85e93938a3a46 |
|
BLAKE2b-256 | 6e343bb567f94e25795aabb17edb2bfb2e4b06e1cd51b2bd3640b7fae361a1ad |