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

# Label Validation Basics

## Compute Metrics and Embeddings

<Tip>
  Computing metrics and embeddings is required to use Similarity Search, Natural Language Search, Quality Metric filters, and Embeddings Analysis.
</Tip>

1. Navigate to **Projects**.
2. Open the **Explore** tab.
3. Hover over **Metrics & Embeddings**
4. Click **Compute**.

<div class="flex justify-center">
  <img src="https://storage.googleapis.com/docs-media.encord.com/static/img/compute-metrics.png" width="500" />
</div>

5. Configure the computation:
   * Select whether you want Similarity & Natural language search and quality metrics
   * Select which embeddings to use.
   * Select whether you want the embeddings plot, and Diversity and Uniqueness metrics.

6. Click **Start computation**.

<div class="flex justify-center">
  <img src="https://storage.googleapis.com/docs-media.encord.com/static/img/start-computation.png" width="400" />
</div>

## Quality Metrics

<Warning>
  Quality metrics are only calculated when you [compute metrics and embeddings](#compute-metrics-and-embeddings).
</Warning>

Quality metrics evaluate your data, labels, and model predictions, forming the foundation of effective data curation. They provide meaningful ways to surface, rank, and explore your data — helping you identify issues, spot patterns, and make informed decisions about what to curate, fix, or prioritize.

<b>Video Quality Metrics:</b> Video quality metrics must be calculated by upgrading your folder. Examples include Area, Clip duration, Frames per second, Number of frames.

<b>Data Quality Metrics:</b> Data quality metrics must be calculated by upgrading your folder. Examples include Area, Frame number, Random value.

<AccordionGroup>
  <Accordion title="Data Quality Metrics">
    For more detailed information on Data Quality Metrics, refer to the Data Quality Metrics documentation.

    | Title                                                                                                                                           | Metric Type | Ontology Type                                                                                                      |
    | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------ |
    | **Area** - <small>Ranks images by their area (width/height).</small>                                                                            | `image`     |                                                                                                                    |
    | **Aspect Ratio** - <small>Ranks images by their aspect ratio (width/height).</small>                                                            | `image`     |                                                                                                                    |
    | **Blue Value** - <small>Ranks images by how blue the average value of the image is.</small>                                                     | `image`     |                                                                                                                    |
    | **Brightness** - <small>Ranks images by their brightness.</small>                                                                               | `image`     |                                                                                                                    |
    | **Contrast** - <small>Ranks images by their contrast.</small>                                                                                   | `image`     |                                                                                                                    |
    | **Diversity** - <small>Forms clusters based on the Ontology and ranks images from easy samples to annotate to hard samples to annotate.</small> | `image`     |                                                                                                                    |
    | **Frame Number** - <small>Selects images based on a specified range.</small>                                                                    | `image`     |                                                                                                                    |
    | **Green Value** - <small>Ranks images by how green the average value of the image is.</small>                                                   | `image`     |                                                                                                                    |
    | **Height** - <small>Ranks images by the height of the image.</small>                                                                            | `image`     |                                                                                                                    |
    | **Object Count** - <small>Counts number of objects in the image.</small>                                                                        | `image`     | `bounding box`, `checklist`, `point`, `polygon`, `polyline`, `radio`, `rotatable bounding box`, `skeleton`, `text` |
    | **Object Density** - <small>Computes the percentage of image area that is occupied by objects.</small>                                          | `image`     | `bounding box`, `polygon`, `rotatable bounding box`                                                                |
    | **Randomize Images** - <small>Assigns a random value between 0 and 1 to images.</small>                                                         | `image`     |                                                                                                                    |
    | **Red Value** - <small>Ranks images by how red the average value of the image is.</small>                                                       | `image`     |                                                                                                                    |
    | **Sharpness** - <small>Ranks images by their sharpness.</small>                                                                                 | `image`     |                                                                                                                    |
    | **Uniqueness** - <small>Finds duplicate and near-duplicate images.</small>                                                                      | `image`     |                                                                                                                    |
    | **Width** - <small>Ranks images by the width of the image.</small>                                                                              | `image`     |                                                                                                                    |
  </Accordion>

  <Accordion title="Label Quality Metrics">
    Label Quality Metrics are used for sorting data, filtering data, and data analytics.

    | Title                                                                                                              | Metric Type         | Ontology Type                                                                        |
    | ------------------------------------------------------------------------------------------------------------------ | ------------------- | ------------------------------------------------------------------------------------ |
    | **Absolute Area** - <small>Computes object size in amount of pixels.</small>                                       | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Aspect Ratio** - <small>Computes aspect ratios of objects.</small>                                               | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Blue Value** - <small>Ranks annotated objects by how blue the average value of the object is.</small>            | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Border Proximity** - <small>Ranks annotations by how close they are to image borders.</small>                    | `image`             | `bounding box`, `point`, `polygon`, `polyline`, `rotatable bounding box`, `skeleton` |
    | **Brightness** - <small>Ranks annotated objects by their brightness.</small>                                       | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Broken Object Tracks** - <small>Identifies broken object tracks based on object overlaps.</small>                | `sequence`, `video` | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Classification Quality** - <small>Compares image classifications against similar images.</small>                 | `image`             | `radio`                                                                              |
    | **Confidence** - <small>The confidence that an object was annotated correctly.</small>                             | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Contrast** - <small>Ranks annotated objects by their contrast.</small>                                           | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Green Value** - <small>Ranks annotated objects by how green the average value of the object is.</small>          | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Height** - <small>Ranks annotated objects by the height of the object.</small>                                   | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Inconsistent Object Class** - <small>Looks for overlapping objects with different classes across frames.</small> | `sequence`, `video` | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Inconsistent Track ID** - <small>Looks for overlapping objects with different track IDs across frames.</small>   | `sequence`, `video` | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Label Duplicates** - <small>Ranks labels by how likely they are to represent the same object.</small>            | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Missing Objects** - <small>Identifies missing objects based on object overlaps.</small>                          | `sequence`, `video` | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Object Classification Quality** - <small>Compares object annotations against similar image crops.</small>        | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Occlusion Risk** - <small>Tracks objects and detects outliers in videos.</small>                                 | `sequence`, `video` | `bounding box`, `rotatable bounding box`                                             |
    | **Polygon Shape Anomaly** - <small>Calculates potential outliers by polygon shape.</small>                         | `image`             | `polygon`                                                                            |
    | **Randomize Objects** - <small>Assigns a random value between 0 and 1 to objects.</small>                          | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Red Value** - <small>Ranks annotated objects by how red the average value of the object is.</small>              | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Relative Area** - <small>Computes object size as a percentage of total image size.</small>                       | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Sharpness** - <small>Ranks annotated objects by their sharpness.</small>                                         | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
    | **Width** - <small>Ranks annotated objects by the width of the object.</small>                                     | `image`             | `bounding box`, `polygon`, `rotatable bounding box`                                  |
  </Accordion>

  <Accordion title="Video Quality Metrics">
    | Title                                                                                                                                           | Metric Type | Ontology Type                                                                                                      |
    | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------ |
    | **Area** - <small>Ranks videos by their area (width/height).</small>                                                                            | `video`     |                                                                                                                    |
    | **Aspect Ratio** - <small>Ranks videos by their aspect ratio (width/height).</small>                                                            | `video`     |                                                                                                                    |
    | **Blue Value** - <small>Ranks videos by how blue the average value of the video is.</small>                                                     | `video`     |                                                                                                                    |
    | **Brightness** - <small>Ranks videos by their brightness.</small>                                                                               | `video`     |                                                                                                                    |
    | **Clip Duration** - <small>Ranks videos based on the video's duration.</small>                                                                  | `video`     |                                                                                                                    |
    | **Contrast** - <small>Ranks videos by their contrast.</small>                                                                                   | `video`     |                                                                                                                    |
    | **Diversity** - <small>Forms clusters based on the ontology and ranks videos from easy samples to annotate to hard samples to annotate.</small> | `video`     |                                                                                                                    |
    | **Frame Number** - <small>Selects videos based on a specified range.</small>                                                                    | `video`     |                                                                                                                    |
    | **Frame Label Count**                                                                                                                           | `video`     |                                                                                                                    |
    | **Frames Per Second**                                                                                                                           | `video`     |                                                                                                                    |
    | **Green Value** - <small>Ranks videos by how green the average value of the video is.</small>                                                   | `video`     |                                                                                                                    |
    | **Height** - <small>Ranks videos by the height of the video.</small>                                                                            | `video`     |                                                                                                                    |
    | **Instance Label Count** - <small>Ranks videos by the number of unique objects in the video.</small>                                            | `video`     | `bounding box`, `checklist`, `point`, `polygon`, `polyline`, `radio`, `rotatable bounding box`, `skeleton`, `text` |
    | **Red Value** - <small>Ranks videos by how red the average value of the video is.</small>                                                       | `video`     |                                                                                                                    |
    | **Sharpness** - <small>Ranks videos by their sharpness.</small>                                                                                 | `video`     |                                                                                                                    |
    | **Uniqueness** - <small>Finds duplicate and near-duplicate videos.</small>                                                                      | `video`     |                                                                                                                    |
    | **Unlabelled Frames (%)** - <small>Ranks videos based on the percentage of unlabelled frames in the video.</small>                              | `video`     |                                                                                                                    |
    | **Unlabelled Frames (#)** - <small>Ranks videos based on the number of unlabelled frames in the video.</small>                                  | `video`     |                                                                                                                    |
    | **Width** - <small>Ranks videos by the width of the video.</small>                                                                              | `video`     |                                                                                                                    |
  </Accordion>

  <Accordion title="Model Quality Metrics">
    Model quality metrics help you evaluate your data and labels based on a trained model and imported model predictions.

    **Acquisition Functions**

    Acquisition functions are a special type of model quality metric, primarily used in active learning to score data samples according to how informative they are for the model, enabling smart labeling of unannotated data.

    | Title                                                                               | Metric Type | Data Type |
    | ----------------------------------------------------------------------------------- | ----------- | --------- |
    | **Entropy** - <small>Ranks images by their entropy.</small>                         | `image`     |           |
    | **Least Confidence** - <small>Ranks images by their least confidence score.</small> | `image`     |           |
    | **Margin** - <small>Ranks images by their margin score.</small>                     | `image`     |           |
    | **Variance** - <small>Ranks images by their variance.</small>                       | `image`     |           |
    | **Mean Object Score** - <small>Ranks images by their average object score.</small>  | `image`     | `object`  |
  </Accordion>
</AccordionGroup>

## Collections

Collections are saved groups of data units or labels that let you curate subsets of your data and perform bulk actions on them, such as sending items to annotation, running bulk classifications, or exporting a curated Dataset.

## Analytics View

Use the Analytics view to display Metric Correlation and prediction distribution for your ML model. Prediction distribution provides class and underrepresented class data. You can adjust the X and Y values on the Metric Correlation across a number of data and label metrics.

You can create custom analytics dashboards from the **Analytics View** using **Distribution** and **Correlation** charts.

<div class="flex justify-center">
  <img src="https://storage.googleapis.com/docs-media.encord.com/static/img/analytics-view.png" width="300" />
</div>

### Distribution charts

Distribution charts display distributions and summaries of the selected metrics and custom metadata.

Here are some examples:

* Data unit: Frame number, random value, area
* Metadata: Enum with their enum options, numeric, date time, and boolean

<Note>`varchar` (previously `string`), `text` (previously `long_string`), and `uuid` are NOT SUPPORTED for use in Distribution charts.</Note>

![Add Distribution chart](https://storage.googleapis.com/docs-media.encord.com/static/img/Index/index-add-distribution-chart.gif)

### Correlation charts

Correlation charts display a scatter plot of two attributes to show correlation within your current filtered view. Correlation charts require numeric data.

<Note>Distribution charts support a number of custom metadata types, however Correlation charts ONLY SUPPORT `numeric` custom metadata.</Note>

![Add Correlation chart](https://storage.googleapis.com/docs-media.encord.com/static/img/Index/index-add-correlation-chart.gif)

### Custom Analytics Dashboard

<Tip>Before creating a custom analytics dashboard, we recommend having custom metadata available in your data. Custom metadata can make the insights you get from the dashboard much more useful.</Tip>

1. Navigate to **Project** > **Explore** and select a folder.

2. Click **Analytics view**.

3. Specify the display criteria for the *Distribution* and *Correlation* cards that display by default.

4. Click **Add chart** to add additional *Distribution* and *Correlation* cards.

5. Specify the display criteria for the added *Distribution* and *Correlation*.

## Crop View

<Note>
  Crop View is only available from the **Labels** page of the **Explore** tab in your Project.
</Note>

The **Labels** page displays all object and classification annotations on your images and video frames. *Crop View* zooms in on each annotated object, making it easier to inspect small or densely annotated regions.

For example, if a blueberry is annotated in an HD video frame containing many blueberries, Crop View off shows the full frame with the annotation highlighted but hard to see. Crop View on zooms directly into the annotated object.

**To turn ON Crop View for all labels:**

1. Navigate to your Project and click **Explore**.

2. Click **Labels**.
   The *Labels* page appears.

3. Click **Display**.
   The *Display* tab appears.

   ![Crop View](https://storage.googleapis.com/docs-media.encord.com/static/img/active/active-crop-view.gif)

4. Toggle the Crop View switch.
   Object labels immediately are zoomed in on. Images/video frames with Classifications remain unchanged.

   <Note>Classifications on images/video frames are not affected by the Crop View feature. This is because Classifications apply to the entire image/video frame, while object annotations apply to specific areas/regions of an image/video frame. The following image has a Classification label/annotation `Blueberry or Cherry? Blueberry` and a bitmask object label/annotation `Blueberry`. The bitmask object annotation zooms in, while the classification does not.</Note>

5. Adjust the **Crop View Zoom** as required.
