Running models with test data
Procedure
Results
The run report is displayed in the results pane. The content of this report varies slightly depending on the type of model.
| Section | Description |
|---|---|
| Assertion results | Displays the results of any defined assertions. If no assertions are defined, this section remains collapsed and shows a No assertions defined tag. |
| Decision output | Displays the output of each end decision. For each decision node, the report shows its name and the JSON output it produced. |
| Messages | Displays printed messages that are extracted from the run history, useful for debugging and understanding the execution flow. |
| Run history | Provides detailed information for all nodes in the decision or predictive model, traced from
end decisions back to start nodes:
|
| Statistics | Displays execution metrics such as compilation time and execution time. |
You can also click Show JSON output to view all input, output, and
execution data in a single JSON structure. The JSON output is organized into four main sections:
payload, infos, statistics, and
messages. payload corresponds to the Decision
output section, and infos corresponds to the Run
history section.
| Tab | Description |
|---|---|
| Decision output | Displays the final output of the task model in JSON format. |
| Assertion results | Displays the results of any defined assertions. If no assertions are defined, the tab remains empty. |
| Messages | Displays printed messages that are extracted from the run history, useful for debugging and understanding the execution flow. |
| Run history | Provides a detailed execution trace of the task model. The trace includes:
|
| Statistics | Displays execution metrics such as compilation time and execution time. |
Example
Open the Approval decision model available in the Loan Approval decision service in the Banking sample, and click the Run tab. You can see data sets that correspond to different test scenarios. When you run the Mr Doe loan data set, the loan is approved and you get the following result:
{
"approved" : true,
"message" : "Congratulations! Your loan has been approved"
}
In this data set, look for the Yearly income field and change its value from 100000 to 80000. When you run the data set with this new value, the loan is not approved and you get the following result:
{
"approved" : false,
"message" : "Too big Debt/Income ratio: 0.45597806940658686"
}
This result validates that the yearly income of the borrower influences the approval of the loan. The number of months during which the borrower repays the loan is also supposed to influence this approval. If you change the value of the number of monthly payments from 72 to 120 and run this data, the loan is now approved again:
{
"approved" : true,
"message" : "Congratulations! Your loan has been approved"
}
This result validates that the number of monthly payments influences the approval of the loan, and that it can compensate for a yearly income that might be too low.