Desktop productivity for business analysts and programmers

How to solve ERROR: Maximum levels of 512 exceeded ?

Reply
Contributor
Posts: 24

How to solve ERROR: Maximum levels of 512 exceeded ?

Dear all ,

I have tried using the (2) suggested methods of changing variable from nominal to interval and also to add   %let EM_TRAIN_MAXLEVELS=n; to project start code.

My dataset doesnt allow me to choose interval and i have placed the code in the Code utility .

Currently, the flow is SAS Code -> Dataset -> Decision tree

In my dataset i have user_id , item_id , results cols .

results is 1 for followed , -1 for not following

I wanna based the decision tree on 2 leave nodes ( followed ) or (not followed)

Thanks
YL

N/A
Posts: 1

Re: How to solve ERROR: Maximum levels of 512 exceeded ?

This error does not necessarily mean that there is a problem. If you encounter this error and do not suspect a problem with your data, then you can eliminate this message in two ways.

  • Change the level of the variable from Nominal to Interval in the data source.
  •   Add the following line of code in the Project Start Code: 

    %let EM_TRAIN_MAXLEVELS=n;

    N equals the maximum number of levels that you want to allow.

Use whichever method you judge to be statistically appropriate for your analysis.

http://support.sas.com/kb/20/054.html

Ask a Question
Discussion stats
  • 1 reply
  • 4361 views
  • 0 likes
  • 2 in conversation