Common metrics and baselines for OCF's energy forecasting work
Project description
ocf-ml-metrics
Collection of simple baseline models and metrics for standardized evaluation of OCF forecasting models.
This package computes a variety of baselines and error metrics including persistence of both last value and last day of generation, comparison to PVLive, and max and zero baselines.
Installation
Install with pip install ocf-ml-metrics
Usage
The easiest way to use this package is to use the
convenience function ocf_ml_metrics.metrics.errors.compute_metrics
that
computes all the basic error metrics overall, with and without night time,
for different parts of the year, different times of day, and all forecast
horizons by default.
There is also ocf_ml_metrics.evaluation.evaluation.evaluation
that computes metrics after taking in a pandas
dataframe. These metrics are computed for the raw values, normalized values, against simple baseline models,
and per ID in the input dataframe. The input dataframe required data can be found in the docstring
And example usage would be
from ocf_ml_metrics.evaluation.evaluation import evaluation
import pandas as pd
results_df = pd.read_csv('<path to csv>')
metrics: dict = evaluation(results_df=results_df, model_name='<model name>')
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
File details
Details for the file ocf_ml_metrics-0.0.11.tar.gz
.
File metadata
- Download URL: ocf_ml_metrics-0.0.11.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c5f349c3f97f26dca2e1d63f0c8dc2e98e583cc25b53791038066442a1be56 |
|
MD5 | bb4e0a3b488ecf970ea79ca6faf4e56d |
|
BLAKE2b-256 | ad349f4217b1f24c20219b08983d29643b5410b2d78b420af7e922c9b5f453ec |
File details
Details for the file ocf_ml_metrics-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: ocf_ml_metrics-0.0.11-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2631c6429045a92149f46d6a99c950c765d83c3f076a245b6a0bafac9f5a08a3 |
|
MD5 | 5d0e47fa76d367c9ff6523dab80e8005 |
|
BLAKE2b-256 | 690200bbe81a14797a0407e22e5bfef56b6d69a25fface8bb6b666ec73470c4f |