Python-sasctl is an open-source package provided by SAS to ease the handoff between the data scientists developing the model and the MLOps engineers managing and deploying the model. Through Python-sasctl, data scientists can take their models developed using Python packages, such as sklearn or xgboost, and automatically generate the scoring code, model pickle file, input variables metadata, output variables metadata, package and version requirements, training performance metadata, and model properties in just a few lines of code. Next, these files are directly pushed into SAS Model Manager.
SAS Model Manager offers a unified model repository where models can be organized, audited, tested, monitored, and deployed. Python models can be deployed into a variety of locations, such as a real-time REST API endpoint on SAS Viya, into a batch destination on SAS Viya, or into a container. A container packages the model and its dependencies. This allows it to run on-prem or in any cloud.
Since SAS Explore took place in Las Vegas this year (and I didn’t want to miss any of the fun), for my session MLOps Uncoiled, I trained several models in Python to predict whether my flight would be delayed 15 minutes or more. Next, I leveraged Python-sasctl to generate the metadata and executable scoring model. Python-sasctl supports automatic score code and metadata generation for many popular Python frameworks, including Sklearn, Xgboost, MLflow, TensorFlow Keras, H2O, and more. Finally, I used Python-sasctl to register the model into SAS Model Manager, where it can be compared, tested, monitored, and deployed.
Python-sasctl helps generate several pieces of metadata. To explain why we collect each piece, let’s dive into the anatomy of a model.
To ensure I collect all the rich metadata MLOPs Engineers want, I follow a specific pattern when registering Python models:
The following demo is a clip from my SAS Explore session highlighting data visualization, model training, model registration, and model management.
To learn model about Python-sasctl and SAS Model Manager, check out the following resources:
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.