# NER train curve with label stats?

**URL:** <https://support.prodi.gy/t/ner-train-curve-with-label-stats/5052>\
**Category:** Uncategorized\
**Tags:** enhancement, usage, training\
**Created:** [December 9, 2021, 3:47am UTC](https://support.prodi.gy/t/ner-train-curve-with-label-stats/5052 "2021-12-09T03:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [December 12, 2021, 5:25pm UTC](https://support.prodi.gy/t/ner-train-curve-with-label-stats/5052/2 "2021-12-12T17:25:28Z")

</div>

Hi! At the moment, the per-label stats are only available in the regular training, since it'd otherwise get very verbose very quickly. The per-label stats can also be a bit less representative when training with small portions of the data, because you can easily end up with very few instances of a given label.

That said, you can take a look at the implementation in `recipes/train.py` (you can run `prodigy stats` to find the location of your Prodigy installation) and make a small adjustment to how the training is run in `train_curve`. If you change the call to the `_train` helper like this, it'll show all detailed stats for each training run, including the per-label stats:

```python
baseline, scores = _train(
    config, gpu_id=gpu_id, overrides=overrides, silent=False, show_label_stats=True
)

```

> [@yihzhang-suncor](#):
>
> Also is there a way to save the metrics from train-curve in a file?

If you just want to save the output in the same format it's shown on the CLI, one option would be to just redirect the output to a file:

```bash
prodigy train-curve ... > train_curve.txt

```

---

_[View the full topic](https://support.prodi.gy/t/ner-train-curve-with-label-stats/5052)._
