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 Analysis node evaluates predictive models' ability to generate accurate
predictions. Analysis nodes perform various comparisons between predicted values and actual values
for one or more model nuggets. They can also compare predictive models to each other.
Example
stream = modeler.script.stream()
node = stream.create("analysis", "My node")
# "Analysis" tab
node.setPropertyValue("coincidence", True)
node.setPropertyValue("performance", True)
node.setPropertyValue("confidence", True)
node.setPropertyValue("threshold", 75)
node.setPropertyValue("improve_accuracy", 3)
node.setPropertyValue("inc_user_measure", True)
# "Define User Measure..."
node.setPropertyValue("user_if", "@TARGET = @PREDICTED")
node.setPropertyValue("user_then", "101")
node.setPropertyValue("user_else", "1")
node.setPropertyValue("user_compute", ["Mean", "Sum"])
node.setPropertyValue("by_fields", ["Drug"])
properties |
Data type | Property description |
---|---|---|
|
|
Used to specify target location for output generated from the output node. |
|
flag | Specifies whether a custom output name is used. |
|
string | If is true, specifies the name to use. |
|
(.txt)
(.html)
(.cou) |
Used to specify the type of output. |
|
list | |
|
string | If disk, data, or HTML output, the name of the output file. |
|
flag | |
|
flag | |
|
flag | |
|
flag | |
|
number | |
|
number | |
|
|
Determines how predicted fields are matched to the original target field. Specify
or . |
|
flag | |
|
expr | |
|
expr | |
|
expr | |
|
|
|
|
boolean | Whether to separate by partition. |
Was the topic helpful?
0/1000