In SAS Viya, a data scientist submits a CAS action using Python's SWAT package: import swat; s = swat.CAS('myserver', 5570); s.loadactionset('decisionTree'); What does this code do?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Here's the deal — a is correct because swat.CAS() establishes a connection to the CAS server, and loadactionset('decisionTree') loads the decisionTree action set — making its actions (dtreeTrain, dtreePrune, dtreeScore, etc.) available for the current session. B is wrong because loadactionset does not train a model.
Full explanation below image
Full Explanation
A is correct because swat.CAS() establishes a connection to the CAS server, and loadactionset('decisionTree') loads the decisionTree action set — making its actions (dtreeTrain, dtreePrune, dtreeScore, etc.) available for the current session. B is wrong because loadactionset does not train a model. C is wrong because it does not create a caslib. D is wrong because SWAT is distinct from DLPy and loadactionset loads CAS actions, not Python libraries.