{"title":"Decision Tree to Ruleset","nodeType":"Manipulator","id":"*frkB7BcmBKXmlgnD","factoryName":"org.knime.base.node.rules.engine.decisiontree.FromDecisionTreeNodeFactory","factoryId":"org.knime.base.node.rules.engine.decisiontree.FromDecisionTreeNodeFactory","path":["Analytics","Mining","Decision Tree"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>Converts (a single) decision tree model to PMML <a href=\"http://www.dmg.org/v4-2-1/RuleSet.html\" rel=\"ugc nofollow noopener noreferrer\">RuleSet</a> model and also to a table containing the rules in a textual form. The resulting rules are independent of each other, the order of rules is not specified, can be changed. Missing value strategies are ignored, it will always evaluate to missing value.</p>\n        ","shortDescription":"Converts a decision tree model to PMML RuleSet model.","keywords":[],"deprecated":false,"streamable":false,"tags":["Analytics","Mining","Decision Tree"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLj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Object","color":"1469af","dataType":"PMML","optional":false,"name":"PMML Decision Tree","description":"A PMML Decision Tree model."}],"outPorts":[{"objectClass":"org.knime.core.node.port.pmml.PMMLPortObject","color":"1469af","dataType":"PMML","optional":false,"name":"PMML RuleSet","description":"The decision tree model represented as PMML RuleSets (with <tt>firstHit</tt> rule selection method)."},{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Rules table","description":"The table contains the rules&#39; text (in single ( <b>Rule</b> ) or two columns ( <b>Condition</b> , <b>Outcome</b> )), the rule <b>Confidence</b> and <b>Weight</b> information and optionally the <b>Record count</b> (for how many rows the ruleset matched when created) and <b>Number of correct</b> values where the outcome of the rule matched the expected label when the model was created."}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Split rules to condition and outcome columns","description":"When checked, two columns will be created for the rules, <b>Condition</b> and <b>Outcome</b> , otherwise the rules will reside in a single column, <b>Rule</b> .","optional":false},{"name":"Add confidence and weight columns","description":"From PMML the <a href=\"http://www.dmg.org/v4-2-1/RuleSet.html#xsdGroup_Rule\" rel=\"ugc nofollow noopener noreferrer\">confidence and weight</a> attributes are extracted to columns. (It will create columns with missing values.)","optional":false},{"name":"Add Record count and Number of correct statistics columns","description":"In PMML, the <tt>recordCount</tt> and the <tt>nbCorrect</tt> attributes provide statistics about the input (training/test/validation) data, with this option, this information can be extracted to the columns: <b>Record count</b> and <b>Number of correct</b>","optional":false},{"name":"Use additional parentheses to document precedence rules","description":"If checked the output will contain additional parenthesis around rule parts to clearly document precedence. For instance, NOT is a stronger operator than AND than OR - using parenthesis improves readability. Checking this option does not change any of the rule logic.","optional":false},{"name":"Provide score distribution record count in PMML","description":"PMML will store the information obtained from the rules on record counts of score distribution (how many times the different values were present in the training data, not necessarily integer)","optional":false},{"name":"Provide score distribution record count in table with column name prefix","description":"Information about the record count of score distribution is saved to the table with the specified prefix.","optional":false},{"name":"Record count column prefix","description":"Prefix for the score distribution record count columns.","optional":false},{"name":"Provide score distribution probability in PMML","description":"PMML will store the information obtained from the rules on probabilities of score distribution (in the training data what the probability was of certain values for that decision tree leaf)","optional":false},{"name":"Provide score distribution probability in table with column name prefix","description":"Information about the probabilities of score distribution is saved to the table with the specified prefix.","optional":false},{"name":"Probability column prefix","description":"Prefix for the score distribution probability columns.","optional":false}]}],"links":[],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202606171353","bundleName":"KNIME Java Snippet Nodes","bundleSymbolicName":"org.knime.jsnippets","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.javasnippet","featureName":"KNIME Javasnippet","featureVersion":"5.12.0.v202606171353","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*hXfYFyb7ZzM0xseG"},"frequentSuccessors":[{"id":"*mTvdLptC3aqDqGrI","factoryName":"org.knime.base.node.mine.decisiontree2.predictor2.DecTreePredictorNodeFactory","probability":0.13812154696132597},{"id":"*OF3oP5KCNWP8Fkn2","factoryName":"org.knime.base.node.rules.engine.pmml.PMMLRuleSetPredictorNodeFactory","probability":0.09944751381215469},{"id":"*2fI5rIsFDCFPHc0R","factoryName":"org.knime.ext.jep.JEPNodeFactory","probability":0.055248618784530384},{"id":"*orOzsHYPnOJsY3H9","factoryName":"org.knime.base.node.mine.decisiontree2.image.DecTreeToImageNodeFactory","probability":0.049723756906077346},{"id":"*bDUBuscC47gFw7rG","factoryName":"org.knime.base.node.rules.engine.totable.RulesToTableNodeFactory","probability":0.03867403314917127},{"id":"*j-Kmco8ue7gKNE7e","factoryName":"org.knime.ext.md.RuleViewerNodeFactory","probability":0.03314917127071823},{"id":"*JiJhJpgkWWuOfG2s","factoryName":"org.knime.ext.poi2.node.write2.XLSWriter2NodeFactory","probability":0.03314917127071823},{"id":"*IPAOkJNeJy0B8rPZ","factoryName":"org.knime.base.node.preproc.cellsplit.CellSplitterNodeFactory","probability":0.027624309392265192},{"id":"*0Y5y2-u7yUx5ohSu","factoryName":"org.knime.base.node.rules.engine.pmml.PMMLRuleEditorNodeFactory","probability":0.022099447513812154},{"id":"*14A00VB0oh4by3NE","factoryName":"org.knime.base.node.io.pmml.write.PMMLWriterNodeFactory","probability":0.022099447513812154}]}
