logo

NJP

Agent Intelligence [Machine Learning] Test the Prediction and Steps to debug - "Prediction not working"

Import · Jun 10, 2018 · article

Once the solution training is complete, we need to check if the prediction is working or not. You can test the prediction with the help of REST API Explorer without actually creating a record.

  1. Type REST API Explorer in the filter navigator > Explorer
  2. Set Namespace as "now", API Name as "Agent Intelligence"
  3. Set "solution_name" for which you need to test the prediction
  4. Click the button "Add Query Parameters"
  5. Add the input fields of your solutions. "short description" (in Text field 1) and "Email not working". Ensure to supply all the input fields of your solution and Click "Send"
  6. You will see the response output

image

You have now confirmed that the prediction works.

STEPS TO DEBUG - "PREDICTION NOT WORKING"

But sometimes you notice that the actual prediction does not work when the record is created. There could be different cases when the prediction does not work. In this article, we will discuss one such case.

1. Let's say prediction did not happen for incident record INC123456. Get data supplied to the inputs fields. And INC123456 has the following input fields

short_description: "email not working"

2. From the REST API explorer, input the solution name, input fields and Get the value of parameter confidence from the response header output.

Class confidence is only 15

"short_description": "email not working",

"confidence": 15.632104265474023

3. Get the threshold value. Follow the below steps

  1. Navigate to Agent Intelligence > Solution Definition > Choose the corresponding Solution Definition
  2. Choose the Solution which is Active from the ML Solutions related list
  3. Under Section, Class Confidence enter Name as and Enter. In this case, we will enter IT Admin > Open the record
  4. On the Class Level Statistics section*,* get the values of Estimated Precision and Estimated Coverage. Let's say we have 75 and 90 respectively
  5. Under Precision Coverage Lookup, match the record with the values that obtained from the previous step( Est. precision 75 and Est. Coverage 90).
  6. Configure the list layout and add "threshold" column. Get the threshold value. For class "IT Admin" we got the threshold value as 25.

Since confidence value 15 is less than the threshold value 25, prediction did not happen for INC123456.

If threshold value greater than confidence, the prediction will not happen. You might want to configure the precision/threshold value for the outcome class.

image

View original source

https://www.servicenow.com/community/now-platform-articles/agent-intelligence-machine-learning-test-the-prediction-and/ta-p/2327802