Data Prep Sheet

Action Principale : copyModelExternal

Preparation Code

Script awaiting validation
Copied!
1PROC CAS;
2 LOADACTIONSET "decisionTree";
3 LOADACTIONSET "aStore";
4 
5 /* Load sample data and promote it to global scope */
6 loadTable / caslib="casuser" path="iris.sashdat" casout={name="iris", replace=true, promote=true};
7 
8 /* Train a decision tree model and save its state */
9 decisionTree.dtreeTrain /
10 TABLE={name="iris"}
11 target="Species"
12 inputs={"SepalLength", "SepalWidth", "PetalLength", "PetalWidth"}
13 savestate={name="myModelStore", replace=true};
14 
15 /* Save the analytic store to a CAS table */
16 aStore.save /
17 rstore={name="myModelStore"}
18 TABLE={name="myModelTable", replace=true};
19RUN;
20QUIT;
Actions using this script
  • modelPublishing copyModelExternal En cours
  • No other action uses this exact script.