Skip to main content

Deploy a Model

Learning Objectives

After completing this unit, you’ll be able to:

  • Deploy a model into Salesforce.
  • Describe ways to sustain accurate models in production.

Ready to Deploy

Now that you’ve learned about models and how to evaluate them, it’s time to deploy your model into Salesforce!

  1. On the Model Performance Overview tab, click Deploy Model, or choose Deploy Model from the model dropdown menu.
    Deploy Model button
  2. If you see the Ready to Deploy prompt, click Get Started.
    Ready to deploy modal

    The Einstein Discovery deployment wizard walks you through the steps to deploy this model.
  3. Model details screenIn Einstein Discovery, every deployed model belongs to a container object called a prediction definition. This screen prompts you to create or update models and prediction definitions, as well as to change the model name. A prediction definition can contain multiple models in which each model produces predictions for a different segment (subset) of your data. In your case, you have just one model to deploy.

  4. For now, accept all defaults and click Next.
    Connect to an Object screen

    This screen prompts you to specify the Salesforce object for which you want to predict outcomes. Type opportunity in the search box, select Opportunity, and then click Next.

    Note: If your data is completely external to Salesforce and not associated with any Salesforce object, you would select Deploy without connecting to a Salesforce Object instead. Map Model Variables screen
    Einstein automatically maps model variables to fields in the object. Everything must be mapped. Industry is missing a mapping. Click in the Object Field selector for Industry and select Opportunity > Account > Industry.
    Map the Industry field in the Account object to the Industry variable in the model.
    Click Next.

  5. For Segment Data, accept the default Don’t segment, and then click Next.Segment Data screenNote: If you wanted to create a prediction definition with multiple models, this is where you’d define filter conditions for a segment in your data. You can skip this because you’re creating a prediction definition with only one model and no segment filters.

  6. For Select Actionable Variables, select Amount, and then click Next.
    Select Actionable Variables screen with Amount selected
  7. For Customize Predictions, accept the default Don't customize and click Next
  8. Review the deployment settings, then click DeployReview Deployment Settings screen with selectionsEinstein deploys the prediction definition with your model into Salesforce and shows it in Model Manager. For a brand new model, there's not much to see yet. Later, this is where you'll be able to track things like number of predictions, accuracy, and performance over time. New Prediction in Model Manager

Great! Your prediction definition and model are deployed and ready for use. In the next unit, you use Einstein Prediction Service to get predictions from your model.

What Else Can You Do with Models?

You use the Model Manager to view, configure, and manage prediction definitions and models that have been deployed in your org. 

Monitoring and maintaining your models is a key factor in successful Einstein Discovery solution implementations. In production, models generally become less accurate over time, a phenomenon known as drift. Models drift when characteristics in the real world data diverge significantly from the training data used to build them. Operational changes, trends, seasonal fluctuations, new or discontinued categories, and other factors can change the composition of your data. 

To keep your models from drifting off course and stay on track, implement the model life cycle, which involves continuous and iterative operational tasks.

Model life cycle with four tasks: train, evaluate, deploy, and monitor

Use Model Manager to configure:

  • Live performance monitoring
  • Automatic performance alerts that notify you if your model performance falls below configured thresholds
  • Automatic refreshes to periodically train your model on the latest data

What’s Next?

Now that you deployed your model into Salesforce, let’s go get some predictions and improvements!

Resources

Continua a imparare gratuitamente!
Registra un account per continuare.
Cosa troverai?
  • Ottieni consigli personalizzati per i tuoi obiettivi di carriera
  • Metti in pratica le tue competenze con sfide pratiche e quiz
  • Monitora e condividi i tuoi progressi con i datori di lavoro
  • Accedi a risorse di tutoraggio e opportunità di carriera