节点属性
“均值”节点在独立组之间或相关字段对之间进行平均值比较,以检验是否存在显著差别。 例如,您可以比较在运行促销之前和之后的平均收入,或者将未收到促销的客户的收入与未收到促销的客户的收入进行比较。
示例
stream = modeler.script.stream()
sourcenode = stream.findByID("id46WRP1285C")
node = stream.create("means", "My node")
node.setPropertyValue("means_mode", "BetweenGroups")
node.setPropertyValue("grouping_field", "BP")
node.setPropertyValue("test_fields", ["Age", "K", "Na"])
stream.link(sourcenode, node)
meansnode properties |
数据类型 | 属性描述 |
|---|---|---|
means_mode |
BetweenGroups BetweenFields |
指定对数据执行的统计方法类型。 |
test_fields |
[field1 ... fieldn] |
当 means_mode 设置为 BetweenGroups 时,指定测试字段。 |
grouping_field |
字段 | 指定分组字段。 |
paired_fields |
[[field1 field2] [field3 field4] ...] |
当 means_mode 设置为 BetweenFields 时,指定要使用的字段对。 |
label_correlations |
标志 | 指定输出中是否显示相关性标签。 仅当 means_mode 设置为 BetweenFields 时,此设置才适用。 |
correlation_mode |
Probability Absolute |
指定是否按概率或绝对值标注相关性。 |
weak_label |
字符串 | |
medium_label |
字符串 | |
strong_label |
字符串 | |
weak_below_probability |
号 | 当 correlation_mode 设置为 Probability 时,用于指定弱相关性的截断值。 这个值必须在0到 1—for 之间,例如 0.90。 |
strong_above_probability |
号 | 强相关性的临界值。 |
weak_below_absolute |
号 | 当 correlation_mode 设置为 Absolute 时,用于指定弱相关性的截断值。 这个值必须在0到 1—for 之间,例如 0.90。 |
strong_above_absolute |
号 | 强相关性的临界值。 |
unimportant_label |
字符串 | |
marginal_label |
字符串 | |
important_label |
字符串 | |
unimportant_below |
号 | 低场强临界值。 这个值必须在0到 1—for 之间,例如 0.90。 |
important_above |
号 | |
use_output_name |
标志 | 指定是否使用自定义输出名称。 |
output_name |
字符串 | 要使用的名字。 |
output_mode |
Screen File |
指定输出节点生成的输出的目标位置。 |
output_format |
Formatted (. tab ) Delimited (. csv ) HTML (. html ) Output (. cou ) |
指定输出类型。 |
full_filename |
字符串 | |
output_view |
Simple Advanced |
指定输出中显示简单视图还是高级视图。 |