通过 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 的包装器的变体:
脚本编写统计和分析