Hi,
My question is the following:
Consider a data set where we have 2 variables called "Fruit" and another one called "CFruit" with corresponding codes.
Ex:
Variable "Fruit": lemon, orange, melon, banana, lemon etc.
Code Variable for Fruit "CFruit": 1, 7, 3, 5, 1, etc.
So that, 1 = lemon, 7 = orange, 3 = melon, 5 = banana, etc.
In SAS Enterprise Miner, is it possible to use the "CFruit" variable as input to train a model (for instance a decision tree), but display the corresponding labeled variable "Fruit" ?
In fact, it is easier for me to interpret the model with labels instead of codes, but for implementing the process in an automated chain it is more convenient and secured to use codes.
Thank you very much for your help.
Best Regards,
Marco
Create a format and apply the format to the variable in the SAS data set.
It should operate as you desire. It's probably easier to do that in your prep step, which I find easier outside of EM.
Create a format and apply the format to the variable in the SAS data set.
It should operate as you desire. It's probably easier to do that in your prep step, which I find easier outside of EM.
When in doubt check the documentation, especially the examples.
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.
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.