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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1799 views
  • 0 likes
  • 4 in conversation