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

# Set up Cohort Analysis for Domino endpoints

Cohort analysis provides information about your model, including feedback about what might be going wrong with it. Cohort analysis is a job that runs on the model’s prediction and ground truth data for a regression model. The result is a PDF report and raw data in JSON format.

To use Cohort Analysis, enable data analysis for each regression model. Doing this for a model starts a series of ingest and analysis jobs.

<Note>
  This feature is only available for regression models with numerical features.
</Note>

## Prerequisites

* [Set up prediction data capture](/cloud/platform-capabilities/features/monitoring/3-set-up-domino-endpoints/1-set-up-prediction-capture)

* The model is [published](/cloud/platform-capabilities/features/model-deployment#deploy-a-model).

* The Domino endpoint is running.

* [Ground truth data](/cloud/platform-capabilities/features/monitoring/3-set-up-domino-endpoints/3-set-up-model-qual-monitor) is available.

* The model is a regression type model

## Set up Cohort Analysis for a Domino endpoint

1. From the navigation pane, click **Domino endpoint**.

2. Click the name of the model for which you want to set up Cohort Analysis.

3. Click **Grafana Monitoring**.

4. Click **Configure Monitoring > Data**.

5. On the Configure Data page, click **open this model** to open the configuration in the Model Monitor.

6. Click **Register Ground Truth Data > Upload Ground Truth Config**.

7. In the Register Ground Truth window, click **Register with Cohort Analysis**.

## Check the status of the data ingestion

After you set up the data analysis for a regression model, you might want to check its status.

1. From the navigation pane, click **Model Monitor**.

2. Click the name of the model for which you set up Cohort Analysis.

3. Click **Ingest History** to check to see if the status is Done.

After the data is ingested, Domino finds underperforming cohorts and the features that make those cohorts distinct from the rest of the data.

## Configure the Cohort Analysis

You can configure the cohort analysis for a model to customize the report.

### Prerequisites

* Check the status of the [data ingestion](/cloud/platform-capabilities/features/monitoring/3-set-up-domino-endpoints/4-set-up-cohort-analysis#check-the-status-of-the-data-ingestion) to confirm the data analysis is complete.

### Configure the Cohort Analysis

1. In the navigation pane, click **Projects**.

2. Click the **DominoCohortAnalysis** project. The DominoCohortAnalysis Project is created automatically as a private project under the model’s project owner’s account.

3. In the navigation pane, click **Code**.

4. Click `config.yaml` and then click **Edit**.

   You can configure the following parameters:

   **min\_k**\
   The minimum number of cohorts.

   **max\_k**\
   The maximum number of cohorts.

   **max\_samples\_for\_clustering**\
   The maximum number of samples to use to find cohorts

   **num\_bins**\
   The number of bins to use to compute the feature histograms and the contrast score.

   **max\_num\_top\_cohorts\_for\_report**\
   The maximum number of cohorts to show in the Cohort Summary and Detailed Cohort Analysis sections of the Cohort Analysis report.

   **max\_num\_top\_cohorts\_for\_report**\
   The maximum number of features to show per cohort in the Detailed Cohort Analysis section of the Cohort Analysis report.

5. Click **Save**.

6. In the navigation pane, click **Jobs**.

7. Select the **cohort\_analysis** job and click **Run** to generate new results.
