BookmarkSubscribeRSS Feed
Kemokazi
Calcite | Level 5

Dear Community,

In SAS VIYA 4 I have some issues about scoring my new dataset using with DS2 code. Let me explain:

Phase 1:

I created a pipeline in Model Studio. (Process is Data-->Manage Variables-->Transformations-->Forest Model-->Score Node-->Model Comparison)

Winner model was Forest and I registered and published model under the pipeline comparison tab.

For model interpretability I needed to use Hyper SHAP and TREE shap values for new scored tables. This is easy because score node has these options and working great. Scored datasets have Shapley values for each row.

I wanted to schedule the process and copy pasted DS2 code from score node.

Phase 2:

I used proc ds2 and simply run the code. 
At the background Model published on to Public CAS library SAS_Model_Table table like other published model. Also Model AST table is inmemory.

 

So I can score the forest model. I can create scored table and write to CAS library. But I can not use DS2 code directly.

ERROR: Line 666: Error reported by DS2 package d2score:
ERROR: Line 666: Store identified by the key AD95B1FC9E115196CE460519A2143F2153D057B9 is not in memory.
NOTE: The ds2 action stopped processing because of errors.
ERROR: The action stopped due to errors.
ERROR: DS2 action was not successful.
NOTE: PROC DS2 has set option NOEXEC and will continue to prepare statements.

 

Store identified by the key AD95B1FC9E115196CE460519A2143F2153D057B9 related to model score code and I use this in the model scoring. Locations are same. AST key IDs are same. If I use score action to score new table at the background log have DS2 code and key ID is same as error key which is not in memory.

 

I attached the raw DS2 code. I need your help to run DS2 code in SAS Studio.

 

(I already used explainModel.shapleyExplainer actions and the main issue is not create SHAP values it is about DS2 code. If I can run this code and procedure I can create LIME and other values.)

 

Thank you.

 

Kind regards,

 

 

1 REPLY 1
SASJedi
Ammonite | Level 13

The reference to the ASTORE named AD95B1FC9E115196CE460519A2143F2153D057B9 is not in the DS2 code provided. To move things forward, please provide a copy the DS2 code that created the package named score _BJVQ3JPG5FMTVZRVKDECAY2DF.

Check out my Jedi SAS Tricks for SAS Users