BookmarkSubscribeRSS Feed

Using Python with Model Studio for SAS® Visual Data Mining and Machine Learning

Started ‎05-13-2020 by
Modified ‎05-13-2020 by
Views 4,766

Though the live version of SAS Global Forum 2020 couldn't take place, we want to virtually share with you the paper and recording of the presentation that we were planning on giving on Using Python with Model Studio for SAS® Visual Data Mining and Machine Learning.  You can view the paper that has details on how Model Studio gives you the ability to execute Python scripts to incorporate custom functionality in a Model Studio pipelin­­e.

 

The Open Source Code node lets you specify Python code directly and provides data items to facilitate the integration of the node in a pipeline. If the Open Source Code node is Supervised Learning node, then creating the appropriate scored data frame enables Model Studio to produce assessment reports. The SAS Code node can also be used to run Python scripts. You can use the Python-SWAT package to execute CAS actions on the CAS server and produce reports that will be displayed in the node results. You can also use SWAT to call packages like DLPy to leverage CAS actions and Python functionality. Finally, we discuss how you can run a Python script on remote server and use SWAT to connect to an existing CAS session to access the data, run a Python modeling package, upload resulting tables in CAS, and display those in the node results.

 

In addition, you can watch this 15-minute super demo on “Incorporating Python into your SAS® Visual Data Mining and Machine Learning Pipeline” which focuses on how to run a Python script on a remote server and use SWAT to connect to an existing CAS session to access the data, run a Python modeling package, and upload resulting tables in CAS. It also shows how you can use the remrunner and paramiko packages to transfer files from remote systems.

 

 

And finally, if you want to see some example code for using Python with Model Studio for SAS Visual Data Mining and Machine Learning, refer to our GitHub example.

 

More Resources

Video: Python Integration with SAS Viya

Blog post: Getting Started with Python Integration to SAS® Viya® - Part 1 - Making a Connection

SAS Book: SAS® Viya®: The Python Perspective

Ask the Expert On-Demand webinar: SAS® Viya®: Working with APIs

Administering SAS Viya? Here are tools to use when working with Python.

Managing models with SAS and Python? Check out this toolset on GitHub.

Contributors
Version history
Last update:
‎05-13-2020 02:59 PM
Updated by:

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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 Labels
Article Tags