BookmarkSubscribeRSS Feed

How to execute a SAS analytical model published to MAS with Python Code

Started ‎12-12-2018 by
Modified ‎03-28-2019 by
Views 5,596

This article is a 2nd follow up on a question from an article I published a few weeks ago and where I discussed how to deploy a SAS analytical model to MAS and execute it through REST API calls.  Question came how to execute same scoring model through Python code. 

Independent form where you make a SAS Viya API call, you need to obtain an access token:

 

1.png

 

As we know the name of our model we can find name, id… of the publsihed MAS model.  With the found model ID I can retrieve input and output variables.

 

2.png

4.png3.png

 

With that you have the necessary information to run the scoring step:

 

5.png

 

 

Version history
Last update:
‎03-28-2019 02:18 PM
Updated by:
Contributors

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags