About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The Distribution node shows the occurrence of symbolic
(categorical) values, such as mortgage type or gender. Typically, you might use the Distribution
node to show imbalances in the data, which you could then rectify using a Balance node before
creating a model.
Example
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)
properties |
Data type | Property description |
---|---|---|
|
|
|
|
field | |
|
field | Overlay field. |
|
flag | |
|
|
|
|
flag | |
|
boolean | Display gridlines. |
Was the topic helpful?
0/1000