> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/advanced/extensions/predictive-labeling.md).

# Predictive Labeling

Predictive labeling generates labels based on your existing labeled data.

## Overview

**Predictive labeling** uses machine learning to generate labels based on a subset of manually labeled data. It helps reduce manual labeling effort and improves consistency, especially for large datasets.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-25db4dbaea602fadeb5ba510e82d97f1336b507d%2FExtension%20-%20Predictive%20Labeling%20-%20highlight%20-%20initials.png?alt=media" alt=""><figcaption></figcaption></figure>

## Use case

This example uses **Predictive labeling** for spam message detection.

1. Create a [row labeling](/data-studio-projects/creating-a-project.md) project.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-602d93006562b86feb8af098c3cef49c216b0229%2FExtension%20-%20Predictive%20labeling%20-%20project%20-%20unlabeled.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Click the gear icon from the extension panel on the right to open the **Manage extensions** dialog, then enable the **Predictive labeling** extension.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-8c1fe60f8e099c41be3844f68f710590550ddd71%2FExtension%20-%20Manage%20extensions%20-%20Predictive%20labeling.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Label at least five items for each answer option. For example, if you have two answer options (`True` and `False`), label at least five items as `True` and five items as `False`.
4. Select the input columns as context for the prediction and select the target field where predicted labels will be added. Then click **Save configuration**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-e96104b41b6ea6fa36f21ac4576bf07fbd69e7d1%2FExtension%20-%20Predictive%20labeling%20-%20project%20-%20data%20labeled.png?alt=media" alt=""><figcaption></figcaption></figure>
5. Review the predicted labels and choose **Accept** or **Reject**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-2abcc7575ec7f63c078000ee3fe5bce0691aa53b%2FExtension%20-%20Predictive%20labeling%20-%20project%20-%20results%20available.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For further details, please visit [Assisted Labeling - Predictive Labeling](/assisted-labeling/predictive-labeling.md).
{% endhint %}
