---
schema_version: "1"
id: da9dd05cb4cf1ab9b17d23812dbe3c1cce43980fdd7e85059b862edad90d8f97
title: Distribute Prediction Definitions and Models with Managed and Unmanaged Packages
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_edd_package_managed.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_edd_package_managed.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 341cdee7b1355f2e77ec9df37566e4fb475757afdd5033d58d3ff37d8825434c
description: Build and train models using your own data, then distribute them to others—within or outside your company—using managed or unmanaged packages. Others can enjoy the benefits of your models’ predictions and improvements without needing the data to train the models themselves. Einstein Discovery supports both first-generation packaging (1GP) and second-generation packaging (2GP).
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Distribute Prediction Definitions and Models with Managed and Unmanaged Packages

Build and train models using your own data, then distribute them to others—within or outside your company—using managed or unmanaged packages. Others can enjoy the benefits of your models’ predictions and improvements without needing the data to train the models themselves. Einstein Discovery supports both first-generation packaging (1GP) and second-generation packaging (2GP).

To add prediction definitions and models to a package:

1. In Package Manager, create a package.
2. In the **Components** tab, click **Add**.
3. In the **Component Type** list, select **Analytics Model** or **Analytics Model Configuration** or **Analytics Model Prediction Definition**.
    
    ![Select the Discovery Prediction or Discovery Model component type](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_package_managed.png)
    
     
    | Component | Description |
    | --- | --- |
    | **Analytics Model** | The Einstein Discovery model, or the custom equation based on statistical understanding of past outcomes to predict future outcomes. |
    | **Analytics Model Configuration** | The metadata for the Einstein Discovery model. Use for editing or retraining the model in the target environment after migration. |
    | **Analytics Model Prediction Definition** | The parent resource of a model (or group of models) in Einstein Discovery. Use to consume model predictions and manage jobs. |
4. In the list of results, select one or more models or prediction definitions.
5. Click **Add Component**

To learn more about managed packages, see [First-Generation Managed Packages](https://developer.salesforce.com/docs/atlas.en-us.pkg1_dev.meta/pkg1_dev/sharing_apps.htm) in the First-Generation Managed Packaging Developer Guide, or [Second-Generation Managed Packages](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp.htm) in the Second-Generation Managed Packaging Developer Guide.