通過 JSL 更輕鬆地從報告中獲取結果有很多關於如何從報告中獲取結果的論壇帖子。通過向顯示樹添加一些屬性並定義兩個將為用戶完成大部分工作的新函數,這可以變得更容易。我建議這種語法:
platform = Fit Model( ... );
platform << Get Result( "BIC", fit("NormalLassoAICValidation") );
//returns [0.683248]
顯示樹屬性
- 定義一組適用於所有平台的標準結果類型。 這將是一個很大的列表,但如果兩個平台都報告調整後的 R2,它們應該都使用相同的結果類型。
- 將結果類型添加到列、單元格和/或顯示的任何其他位置的顯示樹中的屬性,類似於某些平台大綱框的 helpKey 屬性。
- 在平台 GUI 的某處顯示結果類型,可能在它顯示的任何地方的懸停標籤中
- 執行類似於包含模型創建的擬合的標記輪廓框的操作(想想 PLS 中的“...適合 6 個組件”或“帶有 AICc 驗證的普通套索”)。這裡的屬性將特定於平台。
職能
- 創建函數以獲取
- 結果值
- 包含結果的報告元素
- 擬合的報告元素
- 適合的腳本化對象
- 像這樣稱呼他們
platform << Get Result("AdjustedRSquared") //Matrix or list of all Adjusted R Squared values
platform << Get Result("AdjustedRSquared", fit("NIPALS_1")) //Matrix or list of all Adjusted R Squared values in fits with NIPALS_1
platform << Get Result("AdjustedRSquared", fit("NIPALS_1"), fitnumber(1)) // Matrix or list of all Adjusted R Squared values in the first fit with NIPALS_1, should be exactly one value
platform << Get Fit("NIPALS_1") //returns the scriptable object
platform << Get Fit("NIPALS_1","object") //same
platform << Get Fit("NormalLassoAICValidation","report",fitnumber(1)) //returns the report from the first fit with NormalLassoAICValidation
- 這些函數可能是圍繞 XPath 的包裝器的變體:
腳本編寫統計和分析