Training Days to Staff Predictor (beta) Models

The Days to Staff Predictor (beta) model enables you to minimize the Days to Staff field from the Days to Staff dataset. Days to staff is the number of days it takes to staff resource requests on projects based on historical data in your org. The Days to Staff Predictor (beta) model analyzes the different data related to this metric in your Days to Staff dataset and highlights the factors that influence it.

Tip:

We recommend you complete the Salesforce Gain Insight with Einstein Discovery trail before setting up the Einstein Discovery models in your org. For more information, see the Salesforce Trailhead website.

Dependencies and Limitations

For information on the dependencies and limitations of the Days to Staff Predictor (beta) model, see PS Cloud AI Analytics Overview.

Training the Model

You can retrain a model if you want to:

  • Improve your model's accuracy. Go to Performance Model Evaluation to view your model's accuracy metrics.
  • Change the variables that contribute to the prediction. Go to Settings to change the variables.

To retrain the existing model:

  1. Open the model from the Model tab.
  2. Click Settings.
  3. Select the variables that you think will generate the most accurate predictions for your projects.
  4. Click Train Model.

Deploying the Model

To deploy the model:

  1. Open the model from the Model Manager tab.
  2. Click Actions , then select View Model Details.
  3. On the Model Settings tab, click the first Edit under Object Connection.
  4. Select Connect to a Salesforce Object, then select Resource Request from the object list and click Next.
  5. Map object fields to model variables as follows:
    Resource Request Field Mappings for the Days to Staff Predictor (beta) Model

    Model Variable

    Object Field

    AllowCandidatesToSelfNominatepse__Resource_Request__c > Allow Candidates To Self-Nominate
    ProjectGroupNameChainAsc

    pse__Resource_Request__c > pse__Proj__r > pse__Group__r > Group Name Chain

    ProjectManagerNamepse__Resource_Request__c > pse__Project__r > pse__Project_Manager__r > Full Name
    ProjectPracticeNameChainAscpse__Resource_Request__c > pse__Proj__r > pse__Practice__r > Practice Name Chain
    ProjectRegionNameChainAscpse__Resource_Request__c > pse__Proj__r > pse__Region__r > Region Name Chain
    ProjectStagepse__Resource_Request__c > pse__Project__r > Stage
    ResourceRequestCreatedDatepse__Resource_Request__c > Created Date
    ResourceRequestPracticeNameChainAscpse__Resource_Request__c > pse__Practice__r > Practice Name Chain
    ResourceRequestGroupNameChainAscpse__Resource_Request__c > pse__Group__r > Group Name Chain
    ResourceRequestRegionNameChainAscpse__Resource_Request__c > pse__Region__r > Region Name Chain
    ValueAssignmentCostRatepse__Resource_Request__c > Cost Rate Amount
    ValueAssignmentPlannedBillRatepse__Resource_Request__c > pse__Assignment__c > pse__Planned_Bill_Rate__c
    ValueResourceRequestSuggestedBillRatepse__Resource_Request__c > pse__Suggested_Bill_Rate_Number__c

Once you have deployed the model, add the Einstein Predictions component to the Resource Request Lightning page layout to view days to staff predictions on the Resource Request object. For more information on adding components to Lightning page layouts, see the Salesforce Help.