---
sourceDocument: Xanadu Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/intelligent-experiences

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Configure XGBoost for classification or regression solutions

# Configure XGBoost for classification or regression solutions {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Apply XGBoost encoding to optimize the training for your classification or regression solutions.

## Before you begin

Note:  
Configuring advanced settings on your ML solutions is optional. If you choose to configure any of these settings, make sure you're well informed regarding the technology you're enabling in the solution, and that you have a use case that benefits from what the technology offers.  
* Create a classification solution definition or use an existing one.
* Create a regression solution definition or use an existing one.
* Role required: admin or ml_admin
{#configure-xgboost-classification-regression-solutions__ul_bbp_gcr_3lb}

## About this task

XGBoost is an optional gradient boosting framework that uses multiple decision trees and supports both Paragraph Vector-based text and TF-IDF distance-based text. LogR is the default distance-based model algorithm.

In this example scenario, you apply XGBoost to both a classification solution and a regression solution.

## Procedure

1. Navigate to AllPredictive IntelligenceClassificationSolution Definitions.
2. Open a classification solution definition form.
3. On the Advanced Solution Settings tab in the Related Links section of the form, click New.  
4. Create a parameter record.
   1. In the Solution Parameters field, click the search icon.
   2. In the ML Solution Parameters screen, select Use XGBoost algo for classification model training.

   {#configure-xgboost-classification-regression-solutions__substeps_ow5_5tj_zjb}  
5. Click Submit.  
   The Advanced Solution Setting record screen refreshes.  
6. Click Submit.  
   Result: XGBoost is configured for your classification solution. Its solution parameter appears on the Advanced Solution Settings tab of your classification definition form.  
   Note:  
   Follow the steps below if you want to configure XGBoost on a regression solution.
7. Navigate to Predictive IntelligenceRegressionSolution Definitions.
8. In this second scenario, you open a regression solution definition form.
9. Repeat steps 1-5 from the previous classification solution example, except this time you're using a regression solution.
10. Click Submit.  
    Result:

    XGBoost is configured for your regression solution. Its solution parameter appears on the Advanced Solution Settings tab of your regression solution definition form.
**Related tasks**   

* [Create and train a classification solution](https://servicenow-prod.fluidtopics.net/78~nLudSwaZPxXTQ~5F0aA "Specify the records used to train a classification solution, what fields trigger a prediction, and how often you want to retrain your solution.")
* [Create and train a regression solution](https://servicenow-prod.fluidtopics.net/V3fCxMaBw4By1IuCbAt25Q "Train your solution by using historical data to predict numeric outputs, such as a temperature or a stock price. For example, you can use regression to estimate the time it takes to resolve an incident or a case.")

*[\>]: and then


