I ran the code at the bottom and received an error i haven't seen before:
ERROR: PROC internal error. Should not happen.
NOTE: Traceback: line 703 in file /sas/wky/mva-v940m4/aasubs/src/sptoutc.c.
NOTE: Traceback: line 2842 in file /sas/wky/mva-v940m4/aasubs/src/sptoutc.c.
NOTE: Traceback: line 7175 in file /sas/wky/mva-v940m4/aasubs/src/arbgrm.c.
NOTE: Traceback: line 3090 in file /sas/wky/mva-v940m4/dmine/src/arbstmt.c.
Has anyone encountered this?
the code:
proc arboretum data=train;
target &target. / level=nominal;
input &model_vars. tenure /level=ordinal;
input &char_vars. /level=nominal;
assess validata=testd;
code file=code_1;
score data=train out=dev outfit=scorefit_dev;
score data=testd out=scorecard outfit=scorefit;
score data=alld out=scorecard_all outfit=scorefit_all;
save IMPORTANCE=cseg.c_sg_imp1 MODEL=cseg.c_sg_mymodel NODESTATS=cseg.c_sg_nodstat1 RULES=cseg.c_sg_rul1 SEQUENCE=cseg.c_sg_seq1 SIM=cseg.c_sg_sim1 STATSBYNODE=cseg.c_sg_statb1 SUM=cseg.c_sg_sum1
;
run;
quit;
Is testd empty?
I can only reproduce the error when testd exists and has no observations.
(Thank you for providing enough explicit information to reproduce the problem.)
-Padraic
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.