Dear Sir/Madam I would like to know how can i call out the validate probability value using HP4SCORE procedure. i used the sampsio.HMEQ data sample to run it on HPForest as below: HPForest Procedure : proc hpsample data= sampsio.HMEQ out=hmeq sampobs=1788 seed=1234567 partition; Class Bad Delinq Derog Job nInq Reason ; run; proc hpforest data=hmeq maxtrees= 500 vars_to_try=4 seed=600 trainfraction=0.7 maxdepth=50 leafsize=6 alpha= 0.05; target Bad/ level=binary; input Delinq Derog Job nInq Reason / level=nominal; Partition roleVar=_partind_(train='1' validate='0') ; ods output fitstatistics = fit; save file = "/&outdir./Cars.sas"; run; proc hp4score data=hmeq; id Bad; score file="/&outdir./Cars.sas" out=Score123; run; proc print data=Score123 (obs=100); run; The output of the hp4score procedure only display the P_Bad0 ,PBad1&I_BAD. ( Please refer to the attachment) and there is no Validate dataset probability output for validate. Question #1 : What does I_Bad means for my HPForest output based on the script above? Similarity, applying the same data set to HPSPLIT procedure, the scored data produces the probability value for Train and Validate, please see below: SAS Code used: data hmeq; length Bad Loan MortDue Value 8 Reason Job $7 YoJ Derog Delinq CLAge nInq CLNo DebtInc 8; set sampsio.hmeq; run; proc print data=hmeq(obs=10); run; /* HPSLIT procedure */ ods graphics on; proc hpsplit data=hmeq maxdepth=5; class Bad Delinq Derog Job nInq Reason; model Bad(event='1') = Delinq Derog Job nInq Reason CLAge CLNo DebtInc Loan MortDue Value YoJ; prune costcomplexity; partition fraction(validate=0.3 seed=1234567); /* grow gini; */ code file="/&outdir/hpsplexc.sas"; run; data scored; set hmeq; %include '/&outdir/hpsplexc.sas'; run; /* Sample 100 records to view */ proc print data =WORK.scored (obs=500); run; Question # 2 How and what have i missed in my HPForest coding which cause me not be able to call out the validation probability just like HPSPLIT, the score output has both Train( P_Bad0, P_Bad1) and Validate (V_Bad0 , V_Bad1) . Kindly advice, Many thanks for your great help !! thanks! Jimmy
... View more