semvec/pypi-packages huggingface dataset:
clarke-error-grid 0.1.4
Clarke Error Grid analysis and plotly plot for glucose prediction models
License: MIT
Requires Python: >=3.8

# Clarke Error Grid

A simple Python implementation of the Clarke Error Grid for evaluating glucose prediction models.

## Installation

```bash
pip install clarke-error-grid
```


```python
import clarke_error_grid as ceg

ref = [100, 120, 180]
pred = [110, 130, 160]

# Ploting
plt = ceg.plot(ref, pred)
plt.show()

# Samples percentage per region
zones = ceg.zone(ref, pred)
print(zones)
```

# Screenshots

![Plot](https://raw.githubusercontent.com/barthwalsaurabh0/clarke-error-grid/refs/heads/main/plot.png)