---
title: Time series model package prediction intervals
description: Export time series models with prediction intervals in model package (.mlpkg) format.
section_name: Time Series
maturity: public-preview
---

# Time series model package prediction intervals {: #time-series-model-package-prediction-intervals }

!!! info "Availability information"
    Time series prediction interval support for model packages, available as a public preview feature, is off by default. Contact your DataRobot representative or administrator for information on enabling the feature.

    **Feature flag**: Enable computation of all Time-Series Intervals for .mlpkg

Now available for public preview, you can enable the computation of a model's time series prediction intervals (from 1 to 100) during model package generation. To run a DataRobot time series model in a remote prediction environment, you download a model package (.mlpkg file) from the model's [deployment](#deployment-download) or the [Leaderboard](#leaderboard-downloads). In both locations, you can now choose to **Compute prediction intervals** during model package generation. You can then run prediction jobs with a [portable prediction server (PPS)](portable-pps) outside DataRobot.

!!! note
    The **Compute prediction intervals** option is off by default because the computation and inclusion of prediction intervals can significantly increase the amount of time required to generate a model package.


## Deployment model package download {: #deployment-model-package-download }

To download a model package with prediction intervals from a deployment, ensure that your deployment supports model package downloads. The deployment must have a DataRobot build environment and an *external* prediction environment, which you can verify using the [**Governance Lens**](gov-lens) in the deployment inventory:

![](images/pps-1.png)

1. In the external deployment, click **Predictions > Portable Predictions**.

2. Click **Compute prediction intervals**, then click **Download model package (.mlpkg)**.

    The download appears in the downloads bar when complete.

    ![](images/pp-ts-deploy-pred-int.png)

3. Once the PPS download completes, use the provided code snippet to launch the Portable Prediction Server with the downloaded model package.


## Leaderboard model package download {: #leaderboard-model-package-download }

To download a model package with prediction intervals from a model on the Leaderboard, you can use the **Predict > Deploy** or **Predict > Portable Predictions** tab.

=== "Deploy tab download"

    To download from the **Predict > Deploy** tab, take the following steps:

    1. Navigate to the model in the **Leaderboard**, then click **Predict > Deploy**.

    2. Click **Compute prediction intervals**, and then click **Download .mlpkg**.

        The download appears in the downloads bar when complete.

        ![](images/pp-ts-leaderboard-pred-int.png)

=== "Portable Prediction Server tab download"

    !!! info "Availability information"
        The ability to download a model package from the Portable Predictions tab depends on the [MLOps configuration](pricing) for your organization.

    To download from the **Predict > Portable Predictions** tab, take the following steps:

    1. Navigate to the model in the **Leaderboard**, then click **Predict > Portable Predictions**.

    2. Click **Compute prediction intervals**, and then click **Download .mlpkg**.

        The download appears in the downloads bar when complete.

        ![](images/pp-ts-leaderboard-pps-pred-int.png)

    3. Once the PPS download completes, use the provided code snippet to launch the Portable Prediction Server with the downloaded model package.

## PPS prediction interval configuration {: #pps-prediction-interval-configuraton }

After you've enabled prediction intervals for a model package and deployed the model to a portable prediction server, you can configure the prediction intervals percentile and exponential trend in the `.yaml` PPS configuration file or through the use of PPS environment variables. For more information on PPS configuration, see the [Portable Prediction Server](portable-pps) documentation.

!!! note
    The environment variables below are only used if the YAML configuration isn't provided.

| YAML Variable / Environment Variable |  Description  | Type | Default |
|--------------------------------------|---------------|------|---------|
`prediction_intervals_percentile` / `MLOPS_PREDICTION_INTERVALS_PERCENTILE`  |  Sets the percentile to use when defining the prediction interval range. | integer | `80` |