# Scoring Code for time series projects

> Scoring Code for time series projects - How to use the Scoring Code feature for qualifying time
> series models, allowing you to use DataRobot-generated models outside of the DataRobot platform.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-04-24T16:03:56.624001+00:00` (UTC).

## Primary page

- [Scoring Code for time series projects](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html): Full documentation for this topic (HTML).

## Sections on this page

- [Time series parameters for CLI scoring](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#time-series-parameters-for-cli-scoring): In-page section heading.
- [Scoring Code for segmented modeling projects](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#scoring-code-for-segmented-modeling-projects): In-page section heading.
- [Verify that segment models have Scoring Code](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#verify-that-segment-models-have-scoring-code): In-page section heading.
- [Download Scoring Code for a Combined Model](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#download-scoring-code-for-a-combined-model): In-page section heading.
- [Prediction intervals in Scoring Code](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#prediction-intervals-in-scoring-code): In-page section heading.
- [Download Scoring Code with prediction intervals](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#download-scoring-code-with-prediction-intervals): In-page section heading.
- [CLI example using prediction intervals](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#cli-example-using-prediction-intervals): In-page section heading.
- [Feature considerations](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#feature-considerations): In-page section heading.
- [Model support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#model-support): In-page section heading.
- [Time series support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#time-series-support): In-page section heading.
- [Unsupported capabilities](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#unsupported-capabilities): In-page section heading.
- [Supported capabilities](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#supported-capabilities): In-page section heading.
- [Time series blueprints with Scoring Code support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#time-series-blueprints-with-scoring-code-support): In-page section heading.
- [Prediction Explanations support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#prediction-explanations-support): In-page section heading.

## Related documentation

- [Classic UI documentation](https://docs.datarobot.com/en/docs/classic-ui/index.html): Linked from this page.
- [Predictions](https://docs.datarobot.com/en/docs/classic-ui/predictions/index.html): Linked from this page.
- [Portable prediction methods](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/index.html): Linked from this page.
- [Scoring Code](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/index.html): Linked from this page.
- [Leaderboard](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-download-leaderboard.html): Linked from this page.
- [deployment](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-download-deployment.html): Linked from this page.
- [scoring at the command line](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/scoring-cli.html): Linked from this page.
- [segmented modeling](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/ts-segmented.html): Linked from this page.
- [indicator](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/leaderboard-ref.html#tags-and-indicators): Linked from this page.
- [Deploy your Combined Model](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/deploy-methods/deploy-model.html): Linked from this page.
- [custom models](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/custom-models/custom-model-workshop/custom-inf-model.html): Linked from this page.
- [custom tasks](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/cml/cml-custom-tasks.html): Linked from this page.
- [multilabel](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/multilabel-classic.html): Linked from this page.
- [Naive Bayes models](https://docs.datarobot.com/en/docs/workbench/nxt-workbench/experiments/manage-experiments/compare-models.html#model-family-selections): Linked from this page.
- [Visual AI](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/visual-ai/index.html): Linked from this page.
- [Location AI models](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/location-ai/index.html): Linked from this page.
- [Advanced Tuning](https://docs.datarobot.com/en/docs/classic-ui/modeling/analyze-models/evaluate/adv-tuning.html): Linked from this page.
- [feature derivation](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/ts-reference/feature-eng.html): Linked from this page.
- [anomaly detection](https://docs.datarobot.com/en/docs/classic-ui/modeling/special-workflows/unsupervised/anomaly-detection.html#time-series-anomaly-detection): Linked from this page.
- [Row-based](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/ts-adv-modeling/ts-customization.html#duration-and-row-count): Linked from this page.
- [irregular data](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/ts-modeling-data/ts-data-prep.html): Linked from this page.
- [Nowcasting (single forecast point)](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/nowcasting.html): Linked from this page.
- [Intramonth seasonality](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/ts-reference/ts-feature-lists.html#intra-month-seasonality-detection): Linked from this page.
- [Autoexpansion](https://docs.datarobot.com/en/docs/api/reference/predapi/legacy-predapi/dr-predapi.html#making-predictions-with-time-series): Linked from this page.
- [Exponentially Weighted Moving Average (EWMA)](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/ts-reference/ts-adv-opt.html#exponentially-weighted-moving-average): Linked from this page.
- [Clustering](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/ts-clustering.html): Linked from this page.
- [Prediction Explanations](https://docs.datarobot.com/en/docs/classic-ui/modeling/analyze-models/understand/pred-explain/index.html): Linked from this page.
- ["Blind history" gaps](https://docs.datarobot.com/en/docs/reference/glossary/index.html#blind-history): Linked from this page.
- [Feature Discovery](https://docs.datarobot.com/en/docs/classic-ui/data/transform-data/feature-discovery/fd-time.html): Linked from this page.
- [Legacy download](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-download-legacy.html): Linked from this page.
- [XEMP-based](https://docs.datarobot.com/en/docs/classic-ui/modeling/analyze-models/understand/pred-explain/xemp-pe.html): Linked from this page.
- [SHAP-based](https://docs.datarobot.com/en/docs/classic-ui/modeling/analyze-models/understand/pred-explain/shap-pe.html): Linked from this page.

## Documentation content

# Scoring Code for time series projects

[Scoring Code](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/index.html) is a portable, low-latency method of utilizing DataRobot models outside of the DataRobot application. You can export time series models in a Java-based Scoring Code package from:

- TheLeaderboard: (Leaderboard > Predict > Portable Predictions)
- Adeployment: (Deployments > Predictions > Portable Predictions)

> [!NOTE] Time series Scoring Code considerations
> For information on the time series projects, models, and capabilities with Scoring Code support, see the [Time series support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#time-series-support) section.

## Time series parameters for CLI scoring

DataRobot supports using [scoring at the command line](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/scoring-cli.html). The following table describes the time series parameters:

| Field | Required? | Default | Description |
| --- | --- | --- | --- |
| --forecast_point=<value> | No | None | Formatted date from which to forecast. |
| --date_format=<value> | No | None | Date format to use for output. |
| --predictions_start_date=<value> | No | None | Timestamp that indicates when to start calculating predictions. |
| --predictions_end_date=<value> | No | None | Timestamp that indicates when to stop calculating predictions. |
| --with_intervals | No | None | Turns on prediction interval calculations. |
| --interval_length=<value> | No | None | Interval length as int value from 1 to 99. |
| --time_series_batch_processing | No | Disabled | Enables performance-optimized batch processing for time-series models. |

## Scoring Code for segmented modeling projects

With [segmented modeling](https://docs.datarobot.com/en/docs/classic-ui/modeling/time/ts-segmented.html), you can build individual models for segments of a multiseries project. DataRobot then merges these models into a Combined Model.

> [!NOTE] Note
> Scoring Code support is available for segments defined by an ID column in the dataset, not segments discovered by a clustering model.

### Verify that segment models have Scoring Code

If the champion model for a segment does not have Scoring Code, select a model that does have Scoring Code:

1. Navigate to the Combined Model on the Leaderboard.
2. From theSegmentdropdown menu, select a segment. Locate the champion for the segment (designated by the SEGMENT CHAMPIONindicator).
3. If the segment champion does not have a SCORING CODE indicator, select a new model that meets your modeling requirements and has the SCORING CODE indicator. Then selectLeaderboard options > Mark Model as Championfrom theMenuat the top. The segment now has a segment champion with Scoring Code:
4. Repeat the process for each segment of the Combined Model to ensure that all of the segment champions have Scoring Code.

### Download Scoring Code for a Combined Model

To download the Scoring Code JAR for a Combined Model:

- From the leaderboard:Download the Scoring Codefrom the Combined Model.
- From a deployment:Deploy your Combined Model, ensure thateach segment has Scoring Code, anddownload the Scoring Codefrom the Combined Model deployment.

## Prediction intervals in Scoring Code

You can now include prediction intervals in the downloaded Scoring Code JAR for a time series model. Supported intervals are 1 to 99.

### Download Scoring Code with prediction intervals

To download the Scoring Code JAR with prediction intervals enabled:

- From the leaderboard:Download the Scoring CodewithInclude Prediction Intervalsenabled.
- From a deployment:Deploy your modelanddownload the Scoring CodewithInclude Prediction Intervalsenabled.

### CLI example using prediction intervals

The following is a CLI example for scoring models using prediction intervals:

```
java -jar model.jar csv \
    --input=syph.csv \
    --output=output.csv \
    --with_intervals \
    --interval_length=87
```

## Feature considerations

Consider the following when working with Scoring Code:

- Using Scoring Code in production requires additional development efforts to implement model management and model monitoring, which the DataRobot API provides out of the box.
- Exportable Java Scoring Code requires extra RAM during model building. As a result, to use this feature, you should keep your training dataset under 8GB. Projects larger than 8GB may fail due to memory issues. If you get an out-of-memory error, decrease the sample size and try again. The memory requirementdoes not apply during model scoring. During scoring, the only limitation on the dataset is the RAM of the machine on which the Scoring Code is run.

### Model support

Consider the following model support considerations when planning to use Scoring Code:

- Scoring Code is available for models containing onlysupportedbuilt-in tasks. It is not available forcustom modelsor models containing one or morecustom tasks.
- Scoring Code is not supported inmultilabelprojects.
- Keras models do not support Scoring Code by default; however, support can be enabled by having an administrator activate the Enable Scoring Code Support for Keras Models feature flag. Note that these models are not compatible with Scoring Code for Android and Snowflake.

Additional instances in which Scoring Code generation is not available include:

- Naive Bayes models
- Visual AI and Location AI models
- Text tokenization involving the MeCab tokenizer for Japanese text (accessed via Advanced Tuning )

> [!NOTE] Text tokenization
> Using the default text tokenization configuration, char-grams, Japanese text is supported.

### Time series support

The following time series projects and models don't support Scoring Code:

- Time series binary classification projects
- Time series feature derivation projects resulting in datasets larger than 5GB
- Time series anomaly detection models

> [!NOTE] Anomaly detection models support
> While time series anomaly detection models don't generally support Scoring Code, it is supported for IsolationForest and some XGBoost-based anomaly detection model blueprints. For a list of supported time series blueprints, see [Time series blueprints with Scoring Code support](https://docs.datarobot.com/en/docs/classic-ui/predictions/port-pred/scoring-code/sc-time-series.html#time-series-blueprints-with-scoring-code-support).

#### Unsupported capabilities

The following capabilities are not supported for Scoring Code. If Scoring Code is not generated due to an unsupported task in the blueprint, the reason is shown in the Details > Log tab.

- Row-based / irregular data
- Nowcasting (single forecast point)
- Intramonth seasonality
- Time series blenders
- Autoexpansion
- Exponentially Weighted Moving Average (EWMA)
- Clustering
- Partial history / cold start
- Prediction Explanations
- Type conversions after uploading data

#### Supported capabilities

The following capabilities are supported for time series Scoring Code:

- Time series parameters for scoring at the command line
- Segmented modeling
- Prediction intervals
- Calendars (high resolution)
- Cross-series
- Zero inflated / naïve binary
- Nowcasting (historical range predictions)
- "Blind history" gaps
- Weighted features

> [!NOTE] Weighted features support
> While weighted features are generally supported, they can result in Scoring Code becoming unavailable due to validation issues; for example, differences in rolling sum computation can cause consistency issues in projects with a weight feature and models trained on feature lists with `weighted std` or `weighted mean`.

#### Time series blueprints with Scoring Code support

The following blueprints typically support Scoring Code:

- AUTOARIMA with Fixed Error Terms
- ElasticNet Regressor (L2 / Gamma Deviance) using Linearly Decaying Weights with Forecast Distance Modeling
- ElasticNet Regressor (L2 / Gamma Deviance) with Forecast Distance Modeling
- ElasticNet Regressor (L2 / Poisson Deviance) using Linearly Decaying Weights with Forecast Distance Modeling
- ElasticNet Regressor (L2 / Poisson Deviance) with Forecast Distance Modeling
- Eureqa Generalized Additive Model (250 Generations)
- Eureqa Generalized Additive Model (250 Generations) (Gamma Loss)
- Eureqa Generalized Additive Model (250 Generations) (Poisson Loss)
- Eureqa Regressor (Quick Search: 250 Generations)
- eXtreme Gradient Boosted Trees Regressor
- eXtreme Gradient Boosted Trees Regressor (Gamma Loss)
- eXtreme Gradient Boosted Trees Regressor (Poisson Loss)
- eXtreme Gradient Boosted Trees Regressor with Early Stopping
- eXtreme Gradient Boosted Trees Regressor with Early Stopping (Fast Feature Binning)
- eXtreme Gradient Boosted Trees Regressor with Early Stopping (Gamma Loss)
- eXtreme Gradient Boosted Trees Regressor with Early Stopping (learning rate =0.06) (Fast Feature Binning)
- eXtreme Gradient Boosting on ElasticNet Predictions
- eXtreme Gradient Boosting on ElasticNet Predictions (Poisson Loss)
- Light Gradient Boosting on ElasticNet Predictions
- Light Gradient Boosting on ElasticNet Predictions (Gamma Loss)
- Light Gradient Boosting on ElasticNet Predictions (Poisson Loss)
- Performance Clustered Elastic Net Regressor with Forecast Distance Modeling
- Performance Clustered eXtreme Gradient Boosting on Elastic Net Predictions
- RandomForest Regressor
- Ridge Regressor using Linearly Decaying Weights with Forecast Distance Modeling
- Ridge Regressor with Forecast Distance Modeling
- Vector Autoregressive Model (VAR) with Fixed Error Terms
- IsolationForest Anomaly Detection with Calibration (time series)
- Anomaly Detection with Supervised Learning (XGB) and Calibration (time series)

While the blueprints listed above typically support Scoring Code, there are situations when Scoring Code is unavailable:

- Scoring Code might not be available for some models generated using Feature Discovery .
- Consistency issues can occur for non day-level calendars when the event is not in the dataset; therefore, Scoring Code is unavailable.
- Consistency issues can occur when inferring the forecast point in situations with a non-zero blind history ; however, Scoring Code is still available in this scenario.
- Scoring Code might not be available for some models that use text tokenization involving the MeCab tokenizer for Japanese text (accessed via Advanced Tuning ). Using the default configuration of char-grams during AutoPilot, Japanese text is supported.
- Differences in rolling sum computation can cause consistency issues in projects with a weight feature and models trained on feature lists with weighted std or weighted mean .

### Prediction Explanations support

Consider the following when working with Prediction Explanations for Scoring Code:

- To download Prediction Explanations with Scoring Code, youmustselectInclude Prediction ExplanationsduringLeaderboard downloadorDeployment download. This option isnotavailable forLegacy download.
- Scoring CodeonlysupportsXEMP-basedPrediction Explanations.SHAP-basedPrediction Explanations aren't supported.
- Scoring Codedoesn'tsupport Prediction Explanations for time series models.
