BookmarkSubscribeRSS Feed
sdhilip
Quartz | Level 8

Hi 

 

I am getting below error when I tried to run the impute node. I am having training dataset and want to fill the missing value for two variables with mean and count.  Then ,connected the impute node to data partition

 

Capture.JPG

 

Capture5.JPG

Please advise

4 REPLIES 4
PaigeMiller
Diamond | Level 26

You can't impute if a variable has more than 512 levels.

--
Paige Miller
sdhilip
Quartz | Level 8

Thanks @PaigeMiller  I got it now. I did impute after the data partition. It works now.  Thanks

 

 

ZaneleD
Calcite | Level 5

Hi,

 I am getting the same error. I tried connecting the impute node to the data partition but getting the same error. @PaigeMiller  How do I set the levels?

RobWobDobBlobb
Fluorite | Level 6
Hi ZaneleD,

The "levels" are the amount of labels you have for a variable. What you can do in order do decrease it is (in order of my recommendation):
- Replacement (map some of the categories into others)
- Group rare levels (group several similar labels together)

If you by any of those methods get the number of levels below the threshold of 512 it should work.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 4 replies
  • 1866 views
  • 0 likes
  • 4 in conversation