Metadata-Version: 2.1
Name: PVNet
Version: 2.1.28
Summary: PVNet
Author: Peter Dudfield
Author-email: info@openclimatefix.org
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: nowcasting-utils
Requires-Dist: PVNet-summation ==0.0.5
Requires-Dist: nowcasting-datamodel ==1.4.14
Requires-Dist: ocf-datapipes ==1.2.44
Requires-Dist: ocf-ml-metrics
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: matplotlib
Requires-Dist: xarray
Requires-Dist: ipykernel
Requires-Dist: h5netcdf
Requires-Dist: torch >=2.0
Requires-Dist: lightning >=2.0.1
Requires-Dist: torchdata
Requires-Dist: pytest
Requires-Dist: pytest-cov
Requires-Dist: typer
Requires-Dist: sqlalchemy
Requires-Dist: jedi
Requires-Dist: fsspec[s3]
Requires-Dist: tables
Requires-Dist: tilemapbase
Requires-Dist: testcontainers
Requires-Dist: wandb
Requires-Dist: tensorboard
Requires-Dist: tqdm
Requires-Dist: rich
Requires-Dist: omegaconf
Requires-Dist: hydra-core
Requires-Dist: python-dotenv
Requires-Dist: hydra-optuna-sweeper
Provides-Extra: all_models
Requires-Dist: pytorch-tabnet ; extra == 'all_models'
Requires-Dist: efficientnet-pytorch ; extra == 'all_models'

# PVNet 2.1

[![test-release](https://github.com/openclimatefix/PVNet/actions/workflows/test-release.yml/badge.svg)](https://github.com/openclimatefix/PVNet/actions/workflows/test-release.yml)

This project is used for training PVNet and running PVnet on live data.

PVNet2 largely inherits the same architecture from [PVNet1.0](https://github.com/openclimatefix/predict_pv_yield).
The NWP and satellite data are sent through some neural network which encodes them down to 1D intermediate representations.
These are concatenated together with the GSP output history, the calculated solar coordinates (azimuth and elevation) and the GSP ID which has been put through an embedding layer.
This 1D concatenated feature vector is put through an output network which outputs predictions of the future GSP yield.
National forecasts are made by adding all the GSP forecasts together.

## Setup
```bash
git clone https://github.com/openclimatefix/PVNet.git
cd PVNet
pip install -r requirements.txt
pip install git+https://github.com/SheffieldSolar/PV_Live-API
```

## Running
```bash
python run.py
```

## Development
```bash
pip install -r requirements.txt -r requirements-dev.txt
pytest
```

Might need to install PVLive
```
pip install git+https://github.com/SheffieldSolar/PV_Live-API#pvlive_api
```

## Testing

You can use `pytest` to run tests

## Experiments

Notes on these experiments are [here](https://docs.google.com/document/d/1fbkfkBzp16WbnCg7RDuRDvgzInA6XQu3xh4NCjV-WDA/edit?usp=sharing).
