BookmarkSubscribeRSS Feed

End-to-End Guide: Building and Deploying Machine Learning Models in SAS Model Manager

Started ‎11-04-2023 by
Modified ‎11-04-2023 by
Views 981

Introduction

SAS Model Manager is a powerful tool for building, deploying, and managing predictive models. It offers a centralized repository for models, as well as a suite of tools for managing the entire model development lifecycle. Some of the key capabilities of SAS Model Manager include:

  1. Model development: SAS Model Manager allows data scientists and analysts to develop predictive models using a wide range of statistical and machine learning techniques. It supports data exploration, data preparation, model development, and model evaluation.
  2. Model deployment: Once a model is developed, SAS Model Manager allows users to deploy the model in a variety of ways, including through REST APIs, SAS Micro Analytic Service (MAS), and batch scoring.
  3. Model monitoring: SAS Model Manager includes tools for monitoring model performance and detecting changes in model behavior over time. This is critical for ensuring that models remain accurate and reliable as data and business conditions change.
  4. Collaboration and governance: SAS Model Manager allows users to collaborate on model development and share models across teams. It also provides robust governance capabilities, including version control, audit trails, and model validation.

Building accurate predictive models is essential for businesses to gain insights from their data and make informed decisions. Accurate models can help organizations identify trends, detect anomalies, predict outcomes, and optimize processes. They can also help organizations improve customer experience, reduce risk, and increase profitability. However, building accurate models can be challenging, as it requires a deep understanding of statistical and machine learning techniques, as well as expertise in data preparation and feature engineering. SAS Model Manager can help organizations overcome these challenges by providing a comprehensive set of tools for model development and deployment, as well as robust governance and monitoring capabilities to ensure that models remain accurate and reliable over time.

Data Preparation

1- Import dataset

Create a new project in SAS Viya for building models by selecting “Build Models” and then choosing “New Project”.

provide a name for the project and then select the dataset from the browsing option.

rehab_0-1699121126888.png

Choose the Species variable and then select a target for the role.

rehab_1-1699121170162.png

2- Explore the dataset

Move the Data exploration node by dragging it and then execute the pipeline by clicking on run.

rehab_2-1699121215037.png

Select the Data exploration node and then click on the Results option.

rehab_4-1699121281487.pngrehab_5-1699121291597.pngrehab_6-1699121298854.pngrehab_7-1699121305856.pngrehab_8-1699121311576.png

After exploring the iris dataset, it can be concluded that the dataset contains information on four features of iris flowers: sepal length, sepal width, petal length, and petal width. The dataset is well-balanced and contains 50 observations for each of the three species of iris flowers. Additionally, the dataset is relatively clean and requires minimal data preprocessing.

Model Building

In the supervised learning section, include Forest, Decision Tree, Gradient Boosting, Logistic Regression, and Neural Network models.

rehab_9-1699121338236.png

Select “Model Comparison” and then choose “Results”.

rehab_10-1699121363533.png

Based on the model comparison, the Gradient Boosting model is the top performer.

Deployment

Choose the Gradient Boosting model in the pipeline comparison and click on “Register Models”.

rehab_11-1699121395101.png

 

 

rehab_12-1699121413057.png

Next, select “Manage Models” to navigate to the Model Manager.

rehab_13-1699121447692.png

Proceed to publish the model to SAS Micro Analytic Service.

rehab_14-1699121475753.pngrehab_15-1699121485235.png

Sending Inference Requests

The user can utilize Postman to obtain an access token using the password grant type, which is required to access SAS Viya and send requests to the deployed model.

rehab_16-1699121525063.png

Make sure to include this access token when sending a request to the model along with the input data.

rehab_17-1699121556167.png

Conclusion

In conclusion, this blog provided a comprehensive and practical guide on building and deploying machine learning models in SAS Model Manager. It highlighted the step-by-step process, from data preparation to model evaluation and deployment. The blog emphasized the importance of accurate predictive models and showcased the capabilities of SAS Model Manager in streamlining the end-to-end model development lifecycle. By following the guide, readers gained valuable insights into leveraging SAS Model Manager to enhance their machine learning projects, ensuring efficient model creation, evaluation, and deployment. Overall, this blog served as a valuable resource for both beginners and experienced practitioners seeking to harness the power of SAS Model Manager for building and deploying robust machine learning models.

Version history
Last update:
‎11-04-2023 02:15 PM
Updated by:
Contributors

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags