根據可變變數的分區結果建立候選列表我不明白為什麼這個腳本不起作用。
請幫我糾正我的問題。謝謝。
-------------------------------------------------- ------------------
dt = Open("$sample_data\Big Class.jmp");
List = dt << get column name(numeric);
Report = Expr(
rpt = New Window("Big Class - Decision Tree of sex",
dt << Partition(
Y(:sex),
X(Eval Expr(List)),
Informative Missing(1),
SendToReport(Dispatch({}, "Candidates", OutlineBox, {Close(0)}))
)
);
rpt["Partition for sex", "Candidates", Table Box(1)] << Make Into Data Table;
);
Eval(Eval Expr(Report));
自動化和腳本編寫回覆:根據可變變數的分區結果建立候選列表根據您最終想要執行的操作,以下是修改腳本的一種選擇
Names Default To Here(1);
dt = Open("$sample_data\Big Class.jmp");
numcols = dt << get column names(numeric, string);
rpt = New Window("Big Class - Decision Tree of sex",
dt << Partition(
Y(:sex),
X(Eval(numcols)),
Informative Missing(1),
SendToReport(Dispatch({}, "Candidates", OutlineBox, {Close(0)}))
)
);
dt_candidates = rpt["Partition for sex", "Candidates", Table Box(1)] << Make Into Data Table;
回覆:根據可變變數的分區結果建立候選列表List = dt << get column name(numeric);
是不正確的。它需要是
List = dt << get column names(numeric);
回覆:根據可變變數的分區結果建立候選列表 .
回覆:根據可變變數的分區結果建立候選列表它的作用很大。多謝...!