View the sample entity IDs to know the explanation for specific entities. Any valid entity ID which is input data was can be passed. By default, the sample IDs show values that are part of the validation dataset.
Use the aif.show_sample_entity_id python API to view the sample entity IDs.
The following are the Inputs:
· size: sample size in numbers. Default is 25
· is_validation: Entity IDs which are part of the validation data are shown by default. The default value is true. If the value is false, then training entity IDs are displayed.
%python
aif.show_sample_entity_id( size = 10 ) |
(Continued…)
%python
aif.set_plot_dimension( width = 12, height = 6 )
z.show( aif.explain_model( technique = 'Feature Contribution', model_id = 'XGB1', entity_id = 'CUST_ID_5920' ) )
aif.show_plots() |
The output returns the list of entity IDs as follows:
Figure 43: Feature Contribution Plots Output
The plot is rendered as shown in the following paragraph:
Figure 44: Individual Entity Plot Output (Continued…)