BookmarkSubscribeRSS Feed
Mike_j
SAS Employee

Have you ever dreamt about predicting the future?

 

Yes?

 

Then you have come to the right place - Let us create a predictive model.

 

Wait wait wait, someone said something?

 

“Predictive models are black boxes that cannot be interpreted”

 

Good news! Christmas is coming, and Santa is bringing a present to you - Model interpretability. And it even works on imputed and transformed variables!

Yes, that’s right! There are capabilities built into SAS that can assist in interpreting models. The best thing? I will show you how to use it.

 

My tool of choice for this purpose is SAS Model Studio on SAS Viya. If you haven't used it before, it's a drag-and-drop interface, where you don't have to code anything, unless you really want to. One of my favorite tools for creating models quick and easy.

 

Step 1) create a SAS Model Studio project:

cap1.PNG

 As you can see I've opted for the famous HMEQ dataset. Mostly everyone have seen that before.

 

Step 2) Select a target variable. Then add an impute node, some models and enable the model interpretability of your choice:

cap2.PNG

 Or do like me, and only select your favorite model!

 

Step 3) Run the pipeline and open the output of a model node:

cap3.PNG

Note that the imputed variables are used for interpreting the model. But that’s not what we need to convince the business folks to trust our model. Let's fix that!

 

Step 4) Add an ensemble node to a model and enable the same model interpretability:

cap4.PNG

The ensemble node can also be used to connect multiple models, and then use i.e. the average of the model output as scores. In this case, we use it only for interpretation purposes. 

 

Step 5) Run the flow and have a look at the model output:

cap5.PNG

Voila! The original variables are now used to interpret the model.

 

more information about Model Studio and the interpretations can be found here: SAS Help Center: Model Interpretability

 

I wish you a merry Christmas and a Happy New Year!

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

Discussion stats
  • 0 replies
  • 501 views
  • 5 likes
  • 1 in conversation