BookmarkSubscribeRSS Feed

Tip: How to Register an Enterprise Miner Model to Your Production Environment

Started ‎10-16-2014 by
Modified ‎10-06-2015 by
Views 3,168

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.

 

Model Deployment

In my Enterprise Miner development environment I have created the following model.  Let’s call this server dev.sas.com.

                              Pic1.png

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.

Pic2.png

 

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.

Pic3.png

 

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>;

 

Pic4.png

 

3.       Select the Register Model node and set the following properties in the property panel.

a.       Model Name

b.      Model Description

c.       Mining Function

 

Pic5.png

 

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.

Pic6.png

Notice that the Metadata Server listed in the results window corresponds to the EM_REGIS_METASERVER macro variable you set in step 2.

 

Summary

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.

Comments

Great Article

Version history
Last update:
‎10-06-2015 01:31 PM
Updated by:
Contributors

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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