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 pipeline.
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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.