資料の 英語版 に戻る

distributionnode プロパティー

最終更新: 2025年2月11日
distributionnode プロパティー

分布ノードのアイコン棒グラフ・ノードで、ローンの種類や性別など、シンボル値(カテゴリー) の出現頻度を表示します。 通常、棒グラフ・ノードを使用してデータの不均衡を表示しますが、そのデータはモデルの作成前にバランス・ノードを使用して修正できます。

stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")

node = stream.create("distribution", "My node")
stream.link(typenode, node)

# "Plot" tab
node.setPropertyValue("plot", "Flags")
node.setPropertyValue("x_field", "Age")
node.setPropertyValue("color_field", "Drug")
node.setPropertyValue("normalize", True)
node.setPropertyValue("sort_mode", "ByOccurence")
node.setPropertyValue("use_proportional_scale", True)
表 1. distributionnode プロパティー
distributionnodeプロパティー データ・タイプ プロパティーの説明
plot SelectedFields Flags  
x_field フィールド  
color_field フィールド オーバーレイ・フィールド。
normalize フラグ  
sort_mode ByOccurence Alphabetic  
use_proportional_scale フラグ  
use_grid ブール値 グリッド線を表示します。