Action Principale : copyModelExternal
| 1 | PROC CAS; |
| 2 | LOADACTIONSET "decisionTree"; |
| 3 | LOADACTIONSET "sampsio"; |
| 4 | |
| 5 | sampsio.loadTable / caslib="casuser" path="iris.sashdat" casout={name="iris", replace=true}; |
| 6 | |
| 7 | decisionTree.dtreeTrain / |
| 8 | TABLE={name="iris"}, |
| 9 | target="Species", |
| 10 | inputs={{name="SepalLength"}, {name="SepalWidth"}, {name="PetalLength"}, {name="PetalWidth"}}, |
| 11 | nominals={"Species"}, |
| 12 | savestate={name="myModelTable", replace=true}; |
| 13 | RUN; |