BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dlansdowne0090
Calcite | Level 5

I am trying to cluster a datset based on several nominal inputs and one interval level input. I'm getting the error of the max target levels of 512 being exceeded - and I think it may be because SAS is reading the interval input as nominal data. When I try to change this under the File Import Node (Train - Variables), the option to change this variable to the nominal level is greyed out. 

Does anyone know how I can change the variable nominal to interval ? 

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

Strange, it's usually the other way around.  By default (with the Basic Advisor), any numeric variable should be set to Interval.  If you use the Advanced Advisor, then if the number of levels for a numeric variable is less than 20 (by default), then it is set as Nominal, so not sure how a variable with that many levels is being set as Nominal (unless it is being read in as character instead of numeric).

 

If nothing else, you can use a Metadata node (from Utility tab) to change the level of the variable that you want to be interval.

View solution in original post

2 REPLIES 2
WendyCzika
SAS Employee

Strange, it's usually the other way around.  By default (with the Basic Advisor), any numeric variable should be set to Interval.  If you use the Advanced Advisor, then if the number of levels for a numeric variable is less than 20 (by default), then it is set as Nominal, so not sure how a variable with that many levels is being set as Nominal (unless it is being read in as character instead of numeric).

 

If nothing else, you can use a Metadata node (from Utility tab) to change the level of the variable that you want to be interval.

dlansdowne0090
Calcite | Level 5

Thanks for your input. It seemed to work when I changed the file format from xlsx to a csv. 

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!

How to choose a machine learning algorithm

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.

Discussion stats
  • 2 replies
  • 4076 views
  • 0 likes
  • 2 in conversation