How to get model out of Decision Tree and Naives Bayes

Hello,

is there a way to get the model out of Decision Tree and Naives Bayes Analysis? I want to know which variables have which effekt in the prediction. Mabe like an SQL statement or something similar.

Thank you

Andra

Hi Andra,

you can use the XPath nodes for this.

Therefore first use the pmml to cell node (from the ensemble plugin) and than the xpath node.

Just try it is pretty straightforward to be used.

Best, Iris

Hi Iris,

thank you for your reply! I tried what you proposed, but it did not work.

I used the pmml to cell node (there was none under ensemble) right behind the decision tree learner and conected it with the XPath node.

 

The output, however, is just following:

What do I do wrong?

Thank`s Andra

Sorry, while trying to copy the output of the XPAth node, I realized that it is much bigger, as it seemed. However, it still seems to be xml…

<?xml version="1.0" encoding="UTF-8"?>

I tried to post the output, but it needs to be approved by administration first. Here ist part of the output:

<?xml version="1.0" encoding="UTF-8"?>
<PMML version="4.2" xmlns="http://www.dmg.org/PMML-4_2">
    <Header copyright="pluecky">
        <Application name="KNIME" version="2.12.2">
        </Application>
    </Header>
    <DataDictionary numberOfFields="12">

...

Hope you are allowed to see this.

 

What do I do wrong?

Andra

Hi Andra,

you need to configure the xpath node and select what you want to export (e.g. the model parameters) in the configuration dialog.

Iris

Hi Iris,

 

I found an example online and will try that.

Thank you!

Andra