# Add/delete models
URL: https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/creating-addl-models.html

> Describes how to work with models after your initial model build, including creating blenders.

# Add/delete models

This section describes how to work with models after your initial model build.

## Add models from the Leaderboard

Once the Leaderboard is populated, you can create additional models by [creating a new model](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/creating-addl-models.html#use-add-new-model) or [retraining](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/creating-addl-models.html#retrain-a-model) an existing model. In both cases, once you submit your changes you can see the request's progress in the Worker Queue.

### Use Add New Model

To create a new model from the Leaderboard:

1. Click theAdd New Modellink at the top of the Leaderboard.
2. Select a model type, and, if a model of that type already exists, be sure the new model changes at least one of:feature list, sample size, and/or number ofcross-validation runs. ClickAdd Model.

Note that this method functions the same as the Run Task button in the [Repository](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/repository.html#create-a-new-model).

### Retrain a model

You can retrain an existing Leaderboard model by changing the sample size or feature list.

#### Change sample size

To use a different number of rows or percentage of data, click the plus sign ( [https://docs.datarobot.com/en/docs/images/icon-plus.png](https://docs.datarobot.com/en/docs/images/icon-plus.png)) next to the reported sample size:

Set a new value and click Run with new sample size. Note that when setting a new sample size, above a certain point (which is determined by the size of the dataset) DataRobot forces a [frozen run](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/frozen-run.html#start-a-frozen-run). To increase sample size in larger datasets without a frozen run, create the new model from the [Repository](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/repository.html#create-a-new-model). Be aware that this method may use more RAM and have implications on system performance.

> [!NOTE] Note
> When configuring sample sizes to retrain models in projects with large row counts, DataRobot recommends requesting sample sizes using integer row counts or the Snap To Validation option instead of percentages. This is because percentages map to many actual possible row counts and only one of which is the actual sample size for “up to validation.” For example, if a project has 199,408 rows and you request a 64% sample size, any number of rows between 126,625 rows and 128,618 rows maps to 64% of the data. Using integer row counts or the “Snap-to” options avoids ambiguity around how many rows of data you want the model to use.

#### Change feature list

To change the feature list for a specific model, click the feature list icon ( [https://docs.datarobot.com/en/docs/images/icon-change.png](https://docs.datarobot.com/en/docs/images/icon-change.png)) and select a new list. You can also [rerun Autopilot on a new feature list](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/feature-lists.html#rerun-autopilot) to rebuild all models.

## Blended models

Blending lets you combine the predictions of multiple models, which may lead to better results than running models individually. DataRobot can [automatically create blender models](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/leaderboard-ref.html#blender-models) as part of Autopilot if the [Create blenders from top model](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/adv-opt/additional.html) advanced option is enabled. This option is off by default.

Why create blended models?

- To create more accurate models.
- To use multiple blueprints.
- To leverage the wisdom of crowds principal .

Consider the following before creating a blended model:

- Blend between two and eight models, based on different algorithms and with high accuracy.
- Although blenders often increase accuracy, they also require more time to create and score.
- Because the final model is more complex, blended models can be more difficult to interpret and communicate. Use the Understand tab insights to aid in interpretation.
- SHAP Prediction Explanations do not support blenders.
- Blenders cannot be created for extended multiclass with more than 10 classes and [multilabel](multilabel-classic{ target=_blank } experiments.

DataRobot supports the following blending methods for non-time-aware projects. Note that, depending on the project's dataset, DataRobot may only run a subset of the blenders listed below.

| Blender | Project type | Notes |
| --- | --- | --- |
| Average Blend (AVG) | Regression, Binary Classification, Multiclass | N/A |
| Median Blend (MED) | Regression, Binary Classification, Multiclass | N/A |
| Partial Least Squares Blend (PLS) | Regression, Binary Classification | Not available on large datasets* |
| Generalized Linear Model Blend (GLM) | Regression, Binary Classification | Not available on large datasets* |
| Elastic Net Blend (ENET) | Regression, Binary Classification, Multiclass | Not available on large datasets* |
| Mean Absolute Error-Minimizing Weighted Average Blend (MAE) | Regression | Only available for projects using MAE as the project metric; not available on large datasets* |
| Mean Absolute Error-Minimizing Weighted Average Blend with L1 Penalty (MAEL1) | Regression | Only available for projects using MAE as the project metric; not available on large datasets* |
| Random Forest Blend (RF) | Multiclass | Deprecated |
| Light Gradient Boosting Machine Blend (LGBM) | Regression, Binary Classification, Multiclass | Deprecated |

* Datasets exceeding 1.5GB result in a [slim run](https://docs.datarobot.com/en/docs/reference/glossary/index.html#slim-run) project, meaning the project contains models that do not have stacked predictions.

See [below](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/creating-addl-models.html#blenders-for-time-aware-projects) for time-aware blender information.

For each target point, the Average and Median blenders calculate the average or median values of the predictions of the selected individual models. GLM, Elastic Net, and PLS blenders are essentially a second layer of models on the top of the existing models. They use the predictions of the selected models as predictors, while keeping the same target as individual models.

### Create a blended model

Follow these steps to create a blended model.

1. Using the checkboxes on the left side of the model Leaderboard, select two or more models. (See the note on single-model blenders, above, to use blending as an additional calibration method.)
2. Click the model menu icon at the top left of the Leaderboard, then select one of the blending options listed underBlending. (Hovering over a menu item displays a description of the blending option.)
3. A new job appears in the Worker Queue while the blended model is processed. The name indicates the blender type and the models selected to create the blender.

When processing is complete, the new blended model displays in the list on the Leaderboard.

### Blenders for time-aware projects

Time-aware models, because they do not use [stacked predictions](https://docs.datarobot.com/en/docs/reference/pred-ai-ref/data-partitioning.html#what-are-stacked-predictions), have different blenders available:

| Blender (Code) | Project type | Description |
| --- | --- | --- |
| Average Blend (AVG) | OTV, time series | Average of prediction between different models |
| Median Blend (MED) | OTV, time series | Median of prediction between different models |
| Average Blend by Forecast Distance (FD_AVG) | Time series | From the selected models, provides per forecast distance averages for the three top models. Only available for projects with two or more forecast distances; to blend by forecast distance, at least four models need to be selected |
| ENET Blend by Forecast Distance (FD_ENET) | Time series | Elastic Net model per forecast distance to combine predictions; only available for projects with two or more forecast distances |

While some models do better on short term predictions (the next few steps into the future) and others do better at long term predictions (further into the future), time series projects add forecast distance blending options. With forecast distance blenders, DataRobot blends models differently for each forecast distances in order to use the best blueprints for each.

Note that:

- The forecast distance blenders are disabled when the forecast distance is equal to 1.
- When using Average Blender by Forecast Distance, you must select four or more models. If fewer than four are selected, the blender averages model predictions instead of forecast-distance based predictions.

## Add models from selected

After DataRobot creates models and populates the Leaderboard, you can retrain selected models using different settings. For example, you can run using a different feature list or sample size, or select either single-fold or up to five-fold cross-validation.

Use the following steps to re-run one or more selected models.

> [!NOTE] Note
> You cannot use Add models from selected to change settings on blended models.

1. Use the checkboxes on the left side of the model names on the Leaderboard to select one or more models.
2. From the menu, selectModel processing > Add models from selected.
3. Use the resulting box at the top of the Leaderboard to specify a feature list, sample size, and/or number of cross-validation (CV) runs.
4. ClickRun Modelsto retrain the selected models with the specified parameters. New jobs appear in the Worker Queue while DataRobot processes the models.

## Delete models

You can delete models listed on the Leaderboard using the instructions below. Note that when you delete a model in this way, it is deleted from the Leaderboard but not from the underlying project database. Because of this, the model remains available to any parent project components (for example, [blender](https://docs.datarobot.com/en/docs/classic-ui/modeling/build-models/build-basic/creating-addl-models.html#create-a-blended-model) models or Word Cloud).

To delete models:

1. Using the checkboxes on the left side of the model Leaderboard, select one or more models.
2. From the menu, selectModel processing > Delete selected model.
3. ClickDeleteto confirm model deletion.

---
