Have you ever found yourself wondering how to register a SAS® Enterprise Miner™ model created in your development environment to your production environment? Since these environments most likely use different metadata servers it used to require several steps including the copying of files between environments. With the Register Model node you can now accomplish this process directly from Enterprise Miner 13.2.
In my Enterprise Miner development environment I have created the following model. Let’s call this server dev.sas.com.
I have just received word that this model has been certified production ready by our testing organization. The next step in our production process is to register this model to our production SAS environment. To do this I just need to follow a few simple steps.
1. Add a Register Model node to my existing diagram. The Register Model node is located under the Utility tab.
2. By default, the Register Model node will use the metadata server that was part of the original configuration, i.e. dev.sas.com. In my example, this is my development environment, but I need to register the model to my production environment which is called atvm01.na.sas.com. To override the default metadata connection to dev.sas.com I just need to add a few macro variables to my project start code.
a. To open the Project Start Code select your project in the project tree and click the ellipsis button to the right of the Project Start Code in the properties panel.
b. Add the following macro variables to your Project Start Code and change the values to match your environment. (see the picture below for an illustration of what this will look like.)
%let EM_REGIS_METAPORT=<metadata port>;
%let EM_REGIS_METASERVER=<metadata host>;
%let EM_REGIS_METAUSER=’<metadata user>’;
%let EM_REGIS_METAPASS=’<metadata password>’;
%let EM_REGIS_METAPATH=<metadata folder path>;
3. Select the Register Model node and set the following properties in the property panel.
a. Model Name
b. Model Description
c. Mining Function
Note: The Repository Path training property only displays the folders from the default metadata server with which Enterprise Miner was initially configured, i.e. the metadata server directories on dev.sas.com. So, if you use the selection dialog for this property it will only show you the metadata server directories for this default metadata server. The EM_REGIS_METAPATH macro variable that you set in step 2 allows you to specify a folder location on the non-default metadata server, i.e. atvm01.na.sas.com.
4. Select the Register Model node and run the diagram. When the node finishes you can open the results. Below is an example of the Register Model results window.
Notice that the Metadata Server listed in the results window corresponds to the EM_REGIS_METASERVER macro variable you set in step 2.
In just 4 simple steps you can use the Register Model node to easily promote your models between metadata servers allowing other applications such as SAS® Model Manager™ to import and score your models.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.