> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New labels

> Learn how to use the new labels test to detect new labels in your data

## Definition

The new labels test checks if there are new labels in the validation set which are not present in the training set.

## Taxonomy

* **Task types**: Tabular classification, text classification.
* **Availability**: development (Continuously evaluate your models and datasets as you iterate on their versions.).

## Why it matters

* If the validation set contains new labels which the model has not seen during training, it will never predict them correctly.

## Test configuration examples

If you are writing a `tests.json`, here are a few valid configurations for the character length test:

```json Development theme={null}
[
  {
    "name": "No new labels",
    "description": "Asserts that there are no new labels in the current dataset if compared to the reference dataset",
    "type": "consistency",
    "subtype": "newLabelCount",
    "thresholds": [
      {
        "insightName": "newLabels",
        "measurement": "newLabelCount",
        "operator": "<=",
        "value": 0
      }
    ],
    "subpopulationFilters": null,
    "mode": "development",
    "usesValidationDataset": true,
    "usesTrainingDataset": true,
    "usesMlModel": false,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689"
  }
]
```

```json Monitoring theme={null}
[
  {
    "name": "No new labels",
    "description": "Asserts that there are no new labels in the current dataset if compared to the reference dataset",
    "type": "consistency",
    "subtype": "newLabelCount",
    "thresholds": [
      {
        "insightName": "newLabels",
        "measurement": "newLabelCount",
        "operator": "<=",
        "value": 0
      }
    ],
    "subpopulationFilters": null,
    "mode": "monitoring",
    "usesProductionData": true,
    "evaluationWindow": 3600,
    "delayWindow": 0,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689"
  }
]
```

## Related

* [New categories test](https://docs.openlayer.com/tests/consistency/new-category-count).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.