<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik AutoML: How to use Coordinate SHAP Table in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-AutoML-How-to-use-Coordinate-SHAP-Table/ta-p/2061221</link>
    <description>&lt;P&gt;In a previous article (&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-AutoML-Overview-of-SHAP-values/ta-p/1959508" target="_blank" rel="noopener"&gt;Qlik AutoML: Overview of SHAP values&lt;/A&gt;), I described Shapley values and what they represent for AutoML models. These additional measures at the record level can be helpful to enhance data visualizations and understand a model further.&lt;/P&gt;
&lt;P&gt;A helpful trick for using Shapley values in Qlik Sense sheets is to generate the Coordinate Shapley table. This table turns the feature to a record level measure. Thus providing additional methods for aggregating and exploring the values.&lt;/P&gt;
&lt;P&gt;In the steps below, I'll outline how to generate this table. I'll be using the &lt;A href="https://www.kaggle.com/datasets/arashnic/hr-ana" target="_blank" rel="noopener"&gt;HR Analytics: Promotion Data&lt;/A&gt;. This dataset has series of features used to predict whether or not an employee will be promoted.&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Upload train.csv and test.csv from HR Analytics data to Qlik Catalog.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Create a new ML Experiment and select train.csv as the training dataset. Set "is_promoted" to the target variable and unselect "employee_id" as a feature. Run the ML experiment.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="train.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105071i989DE6892435FFCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="train.png" alt="train.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Click on 'Deploy' and then follow the link at the top of the webpage which will take you to your deployed model within the "ML Model Management" interface.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within "Deployment Overview", select "Create Prediction".&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105072iDD5D1F85A89D2838/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction1.png" alt="prediction1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;For the apply dataset, select test.csv from Qlik Catalog.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105073iB958C17F086F6AB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction2.png" alt="prediction2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Under Prediction Options, include "Coordinate SHAP" table and set "employee_id" as your index column. Then click 'Save and Predict Now.'&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105074i9627359636ADEE4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction3.png" alt="prediction3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Within Catalog, you will now see the prediction tables and Coordinate SHAP table available. &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105075i7C39A4DC21A3D845/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction4.png" alt="prediction4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If you open up the Coordinate_SHAP table in Catalog, you can see the different structure than the SHAP table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coord_tabl1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105079i1F981806C09BEF07/image-size/large?v=v2&amp;amp;px=999" role="button" title="coord_tabl1.png" alt="coord_tabl1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coord_tabl2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105080iF3073A498432DEB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="coord_tabl2.png" alt="coord_tabl2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open a new Sense App and upload the prediction tables generated in step #7.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105077i74E8BA52D6477FC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="app2.png" alt="app2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I applied all recommended associations, so the tables are linked by "employee_id."&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105078iF94F77C37C311627/image-size/large?v=v2&amp;amp;px=999" role="button" title="app3.png" alt="app3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a new horizontal bar chart to a sheet with 'automl_feature' as the dimension and the average 'SHAP_value' as the measure.&amp;nbsp; This way you can review whether the feature influence the predicted value in a positive or negative way. Additionally, you can add filter dimensions to compare different groups within the dataset. In the example below, we compare 'R&amp;amp;D' vs 'Finance' Department.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105082i01ACBA563254BB35/image-size/large?v=v2&amp;amp;px=999" role="button" title="report1.png" alt="report1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105084i0363F177B5B42DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="report2.png" alt="report2.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966; font-family: inherit; font-size: 20px;"&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik AutoML" id="qlikAutoML"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 07:51:04 GMT</pubDate>
    <dc:creator>KellyHobson</dc:creator>
    <dc:date>2023-04-18T07:51:04Z</dc:date>
    <item>
      <title>Qlik AutoML: How to use Coordinate SHAP Table</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-AutoML-How-to-use-Coordinate-SHAP-Table/ta-p/2061221</link>
      <description>&lt;P&gt;In a previous article (&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-AutoML-Overview-of-SHAP-values/ta-p/1959508" target="_blank" rel="noopener"&gt;Qlik AutoML: Overview of SHAP values&lt;/A&gt;), I described Shapley values and what they represent for AutoML models. These additional measures at the record level can be helpful to enhance data visualizations and understand a model further.&lt;/P&gt;
&lt;P&gt;A helpful trick for using Shapley values in Qlik Sense sheets is to generate the Coordinate Shapley table. This table turns the feature to a record level measure. Thus providing additional methods for aggregating and exploring the values.&lt;/P&gt;
&lt;P&gt;In the steps below, I'll outline how to generate this table. I'll be using the &lt;A href="https://www.kaggle.com/datasets/arashnic/hr-ana" target="_blank" rel="noopener"&gt;HR Analytics: Promotion Data&lt;/A&gt;. This dataset has series of features used to predict whether or not an employee will be promoted.&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Upload train.csv and test.csv from HR Analytics data to Qlik Catalog.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Create a new ML Experiment and select train.csv as the training dataset. Set "is_promoted" to the target variable and unselect "employee_id" as a feature. Run the ML experiment.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="train.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105071i989DE6892435FFCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="train.png" alt="train.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Click on 'Deploy' and then follow the link at the top of the webpage which will take you to your deployed model within the "ML Model Management" interface.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within "Deployment Overview", select "Create Prediction".&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105072iDD5D1F85A89D2838/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction1.png" alt="prediction1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;For the apply dataset, select test.csv from Qlik Catalog.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105073iB958C17F086F6AB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction2.png" alt="prediction2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Under Prediction Options, include "Coordinate SHAP" table and set "employee_id" as your index column. Then click 'Save and Predict Now.'&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105074i9627359636ADEE4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction3.png" alt="prediction3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Within Catalog, you will now see the prediction tables and Coordinate SHAP table available. &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105075i7C39A4DC21A3D845/image-size/large?v=v2&amp;amp;px=999" role="button" title="prediction4.png" alt="prediction4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If you open up the Coordinate_SHAP table in Catalog, you can see the different structure than the SHAP table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coord_tabl1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105079i1F981806C09BEF07/image-size/large?v=v2&amp;amp;px=999" role="button" title="coord_tabl1.png" alt="coord_tabl1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coord_tabl2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105080iF3073A498432DEB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="coord_tabl2.png" alt="coord_tabl2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Open a new Sense App and upload the prediction tables generated in step #7.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105077i74E8BA52D6477FC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="app2.png" alt="app2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I applied all recommended associations, so the tables are linked by "employee_id."&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="app3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105078iF94F77C37C311627/image-size/large?v=v2&amp;amp;px=999" role="button" title="app3.png" alt="app3.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a new horizontal bar chart to a sheet with 'automl_feature' as the dimension and the average 'SHAP_value' as the measure.&amp;nbsp; This way you can review whether the feature influence the predicted value in a positive or negative way. Additionally, you can add filter dimensions to compare different groups within the dataset. In the example below, we compare 'R&amp;amp;D' vs 'Finance' Department.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105082i01ACBA563254BB35/image-size/large?v=v2&amp;amp;px=999" role="button" title="report1.png" alt="report1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105084i0363F177B5B42DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="report2.png" alt="report2.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966; font-family: inherit; font-size: 20px;"&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik AutoML" id="qlikAutoML"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 07:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-AutoML-How-to-use-Coordinate-SHAP-Table/ta-p/2061221</guid>
      <dc:creator>KellyHobson</dc:creator>
      <dc:date>2023-04-18T07:51:04Z</dc:date>
    </item>
  </channel>
</rss>

