Action Principale : forestCode
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | SESSION casauto; |
| 5 | TABLE.loadTable / caslib="samples" path="hmeq.csv" casout="hmeq"; |
| 6 | decisionTree.forestTrain / TABLE={name="hmeq", where="BAD ne ."} target="BAD" inputs={"LOAN", "MORTDUE", "VALUE", "REASON", "JOB", "YOJ", "DEROG", "DELINQ", "CLAGE", "NINQ", "CLNO", "DEBTINC"} nominals={"REASON", "JOB", "BAD"} casOut={name="forest_model", replace=true}; |
| 7 | |
| 8 | RUN; |
| 9 |