BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
duanzongran
Obsidian | Level 7
proc arbor data=work.step01
   Leafsize=1
   Splitsize=2
   Mincatsize = 5
   Maxbranch=10
   Maxdepth=6
   Criterion=PROBCHISQ
   alpha = 0.05
   Padjust= CHAIDAFTER
   DEPTH
   MAXRULES=5
   MAXSURRS=0
   Missing=USEINSEARCH
   Exhaustive=0
/*   event='malignant'*/
   ;
input  &varN./ level=interval;
input  &varC./ level=nominal;
target NGOOD/level=binary;
   Performance DISK NodeSize=20000;
   Assess NoValidata measure=MISC;
   SUBTREE LARGEST;
   MAKEMACRO NLEAVES=nleaves;
   save
      MODEL=Tree_EMTREE
      SEQUENCE=Tree_OUTSEQ
      IMPORTANCE=Tree_OUTIMPORT
      NODESTAT=Tree_OUTNODES
      SUMMARY=Tree_OUTSUMMARY
      STATSBYNODE=Tree_OUTSTATS
      Topology=Tree_OUTTOPOLOGY
      Path = Tree_OUTPATH
      Rules=Tree_OUTRules
   ;
   code file="&pth.\sas_rule&i..XML"  PMML   ;
quit;

 when the code statement changed as
code file="&pth.\sas_rule&i..sas";
IT works ,but when become PMML ,it doesn't work.

I have search for help a very long time .
Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

It looks like you need to do it as follows:

 

 


ods pmml file="&pth.\sas_rule&i..XML" encoding="UTF-8"; 

proc arbor. ...
...
code pmml;
run;

ods pmml close;

View solution in original post

2 REPLIES 2
WendyCzika
SAS Employee

It looks like you need to do it as follows:

 

 


ods pmml file="&pth.\sas_rule&i..XML" encoding="UTF-8"; 

proc arbor. ...
...
code pmml;
run;

ods pmml close;

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
  • 2 replies
  • 920 views
  • 3 likes
  • 2 in conversation