Icon

JKISeason2-13_sryu

Challenge 13:

Description: You ara a data scientist working for a real estate company, and heard a rumour that the "average number of rooms per dwelling" (RM) may be connected to the "per capita crime rate" (CRIM) depending on the city/town. You then decide to investigate if this is the case for Boston, the city where you live and work from. To this end, you decide to experiment with a machine learning regression model and with a topic that you have recently been studying: XAI. How are RM and CRIM connected in Boston? Hint: Consider calculating the SHAP values of each independent feature using a SHAP loop. Hint 2: Consider using a dependence plot to verify how RM and CRIM are connected visually.

Annotations and comments
  • SHAP values feature wise
  • Prefix "SHAP"
  • X Axis
  • Y Axis
  • Color by Column
  • Port 0 : train set Port 1: test set
  • Node 1353
  • using SHAP Summarizer Sampling weight
  • Append the mumeric and string Cols
  • Append the SHAP weights col
  • SHAP Weight col
  • Pick data based on the case
  • if empty means no string columns proceed with kmeans on numerical columns
  • Check the first row of the string columns
  • Append OHE string cols to numeric cols
  • Append the numeric with decoded OHE cols
  • Split the columns into numeric and String columns
  • Split into numeric and OHE cols
  • Number of Prototypes
  • check if the normalisation flag is set
  • Create flow variable with value "top" if table has more than 0 rows, otherwise "bottom"
  • Pass the col names to the loop
  • Extract the specs of Numerical columns
  • Start with string cols
  • Brealpoint to check if empty cols
  • Select the sum
  • Upper output port is activ, if not all column headers are equivalent Lower output port is active, if all column header are equivalent
  • Full outer join on column headers. If a column header is only in one table it will create a missing values
  • Sum of Missing values
  • Misising value treatment
  • Table with non empty columns
  • Shuffle before applying k-Means to avoid order related issues
  • Send the String Cols names
  • Extract cluster sizes
  • Rename the col SHAP weights

Nodes

Extensions

Links