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>')
Metadata
Release files for ocf-ml-metrics 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocf_ml_metrics-0.0.11.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocf_ml_metrics-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / ocf_ml_metrics-0.0.11.tar.gz
| Download URL | ocf_ml_metrics-0.0.11.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0c5f349c3f97f26dca2e1d63f0c8dc2e98e583cc25b53791038066442a1be56
|
|
BLAKE2b-256 checksum How to use checksums |
ad349f4217b1f24c20219b08983d29643b5410b2d78b420af7e922c9b5f453ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / ocf_ml_metrics-0.0.11-py3-none-any.whl
| Download URL | ocf_ml_metrics-0.0.11-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2631c6429045a92149f46d6a99c950c765d83c3f076a245b6a0bafac9f5a08a3
|
|
BLAKE2b-256 checksum How to use checksums |
690200bbe81a14797a0407e22e5bfef56b6d69a25fface8bb6b666ec73470c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|