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 | Provenance | Actions |
|---|---|---|---|---|
| ocf_ml_metrics-0.0.11.tar.gz | 8.9 kB | Without provenance | Details for ocf_ml_metrics-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocf_ml_metrics-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for ocf_ml_metrics-0.0.11-py3-none-any.whl |
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
|
Security for ocf-ml-metrics 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.