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!
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;
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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.