Action Principale : forestScore
| 1 | |
| 2 | PROC CAS; |
| 3 | |
| 4 | SESSION mysess; |
| 5 | LOADACTIONSET "decisionTree"; |
| 6 | upload path="https://support.sas.com/documentation/onlinedoc/viya/exampledatasets/hmeq.csv" casout="hmeq"; |
| 7 | decisionTree.forestTrain / TABLE="hmeq" target="BAD" inputs={"LOAN", "MORTDUE", "VALUE", "REASON", "JOB"} nominals={"REASON", "JOB", "BAD"} casOut={name="forest_model" replace=true}; |
| 8 | |
| 9 | RUN; |
| 10 |