{"title":"Ruleset Editor","nodeType":"Learner","id":"*0Y5y2-u7yUx5ohSu","factoryName":"org.knime.base.node.rules.engine.pmml.PMMLRuleEditorNodeFactory","factoryId":"org.knime.base.node.rules.engine.pmml.PMMLRuleEditorNodeFactory","path":["Manipulation","PMML"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>Using the rules specified, it creates a PMML <a href=\"http://www.dmg.org/v4-1/RuleSet.html\" rel=\"ugc nofollow noopener noreferrer\">RuleSet</a> model. It also applies the rules to the input table. This node takes a list of user-defined rules and tries to match them to each row in the input table. If a rule matches, its outcome value is added into a new column. The first matching rule in order of definition determines the outcome.</p><p>Each rule is represented by a line. To add comments, start a line with <tt>//</tt> (comments can not be placed in the same line as a rule). Anything after <tt>//</tt> will not be interpreted as a rule. Rules consist of a condition part (antecedent), which must evaluate to <i>true</i> or <i>false</i> , and an outcome (consequent, after the &#61;&gt; symbol) which is put into the new column if the rule matches.</p>\n            \t\t\t\n            <p>The outcome of a rule can either be a constant string, a constant number or boolean constant. The type of the outcome column is the common super type of all possible outcomes (including the rules that can never match). If no rule matches, the outcome is a missing value.</p>\n            \t\t\t\n            <p>Columns are given by their name surrounded by $, numbers are given in the usual decimal representation. Note that strings must not contain (double-)quotes.</p>\n                        \n            <p>The logical expressions can be grouped with parentheses. The precedence rules for them are the following: <tt>NOT</tt> binds most, <tt>AND</tt> , <tt>XOR</tt> and finally <tt>OR</tt> the least. Comparison operators always take precedence over logical connectives. All operators (and their names) are case-sensitive.</p>\n            \t\t\t\n            <p>Some example rules (each should be in one line):</p>\n            \t\t\t\n            <pre>// This is a comment\n$Col0$ &gt; 0 &#61;&gt; &#34;Positive&#34;\n</pre>\n            \t\t\tWhen the values in Col0 are greater than 0, we assign Positive to the\n\t\t\tresult column value (if no previous rule matched).\n\t\t\t\n            <pre>$Col0$ &#61; &#34;Active&#34; AND $Col1$ &lt;&#61; 5 &#61;&gt; &#34;Outlier&#34;\n</pre>\n            \t\t\tYou can combine conditions.\n\t\t\t\n            <p>You can use either Ctrl&#43;Space to insert predefined parts, or select them from the upper controls.</p>\n            \t\t\n        \n        ","shortDescription":"Edits PMML Rulesets.","keywords":[],"deprecated":false,"streamable":true,"tags":["Manipulation","PMML","Streamable"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowYjM2YWM5Ny01ZWJhLTQwZTctOTE4OS1iYmU4ZDdkMGYyNGUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEY5OTBEREQxRjYxMTFFNTg3ODlCMUE5RDg0MEQ5MkIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEY5OTBEREMxRjYxMTFFNTg3ODlCMUE5RDg0MEQ5MkIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDphMGJhODVhNC03YzMyLTRmMDgtOWRiYS0wOWU1ZGM5OWMzODMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MGIzNmFjOTctNWViYS00MGU3LTkxODktYmJlOGQ3ZDBmMjRlIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VlOmGwAAAF1JREFUeNpi/P//PwMlgHHADWAgwQCQQl9KDcA0hBQD/kMUoxoCEiMGwwxAN4QRyiE5vBgZQVoZ/BihJpMXhUBDKHYB0eGAKwxITDI4YoHidECsF7A5e+AzE0CAAQDL36ZytUOcRAAAAABJRU5ErkJggg==","views":[],"inPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Table","description":"A table with the columns to be used in the rules."}],"outPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Classified values","description":"The table with the rules applied."},{"objectClass":"org.knime.core.node.port.pmml.PMMLPortObject","color":"1469af","dataType":"PMML","optional":false,"name":"RuleSet model","description":"The PMML RuleSet model."}],"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":[{"fields":[{"name":"Column List","description":"Available columns, which can be used as variables in a rule.","optional":false},{"name":"Category","description":"The operator categories.","optional":false},{"name":"Function","description":"A list of valid operators in the selected category.","optional":false},{"name":"Description","description":"Short help about the operator.","optional":false},{"name":"Expression","description":"The rule editor. You can complete the expressions with Ctrl&#43;Space. Each row represents a rule. The background of the line signals errors (pink), or comments (yellow). The left side of the editor can show an error icon.","optional":false},{"name":"Appended Column","description":"Name of the newly appended column, which contains the outcome of the rules.","optional":false},{"name":"Replace Column","description":"The column to replace","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":"*0Y5y2-u7yUx5ohSu","factoryName":"org.knime.base.node.rules.engine.pmml.PMMLRuleEditorNodeFactory","probability":0.06666666666666667},{"id":"*frkB7BcmBKXmlgnD","factoryName":"org.knime.base.node.rules.engine.decisiontree.FromDecisionTreeNodeFactory","probability":0.047619047619047616},{"id":"*GpUdH91fJl4_KfiB","factoryName":"org.knime.base.node.rules.engine.twoports.RuleEngine2PortsNodeFactory","probability":0.047619047619047616},{"id":"*bDUBuscC47gFw7rG","factoryName":"org.knime.base.node.rules.engine.totable.RulesToTableNodeFactory","probability":0.047619047619047616},{"id":"*OF3oP5KCNWP8Fkn2","factoryName":"org.knime.base.node.rules.engine.pmml.PMMLRuleSetPredictorNodeFactory","probability":0.0380952380952381},{"id":"*DOkyMaii62U05xZ1","factoryName":"org.knime.base.node.preproc.filter.column.DataColumnSpecFilterNodeFactory","probability":0.0380952380952381},{"id":"*OuUlAho1iWN4TCEk","factoryName":"org.knime.base.node.switches.emptytableswitch.EmptyTableSwitchNodeFactory","probability":0.0380952380952381},{"id":"*5stmXk6zY_ORA4bC","factoryName":"org.knime.base.node.preproc.groupby.GroupByNodeFactory","probability":0.0380952380952381},{"id":"*zpGPAjDyExkFL2HB","factoryName":"org.knime.base.node.rules.engine.RuleEngineNodeFactory","probability":0.0380952380952381},{"id":"*1QQFxIzeu9KVOVPZ","factoryName":"org.knime.base.node.preproc.pmml.columnfilter.DataColumnSpecFilterPMMLNodeFactory","probability":0.02857142857142857}]}
