Error with PMML reader

Hello all,

I'm new to KNIME and I'm facing this problem, I hope you can help me.

In the PMML reader node I used a xml file (EMPMML.xml) generated by SAS Enterprise Miner relating to a neural network. The steps in EM were correct but when I put the file in KNIME there are the following warning and errors:

WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
ERROR     PMML Error Handler     Invalid PMML file:
WARN      PMML Reader     File "G:\SAS\UCI\UCI\Workspaces\EMWS6\Neural\EMPMML.xml" is not a valid PMML file:
cvc-complex-type.2.1: Element 'Constant' must have no character or element information item [children], because the type's content type is empty.
WARN      PMML Reader     org.xml.sax.SAXParseException: cvc-complex-type.2.1: Element 'Constant' must have no character or element information item [children], because the type's content type is empty.
 

Hi martavb,

it seems that your generated PMML file does not conform to the PMML definition. You can double check this for the PMML versions 2.1, 3.0, 3.1, and 3.2 with the Zementis PMML Converter by uploading your file to the Zementis website http://www.zementis.com/pmml.htm.

Which PMML version are you producing?

Dominik

It seems that I only get the error with version 3.1 of PMML. Doesn't KNIME accept this version?

 

Kind regards,

Marta

Hi,

It produced the version 3.1.

I followed your suggestion and converted with Zementis to 3.2. After conversion, it says "The provided file was succesfully converted to PMML 3.2 format."
I put the code in PMML node and the error dissapeared, but I still get warnings:

WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "missingValueTreatment" is not supported and will be ignored. Skipping it
WARN      MiningSchemaContentHandler     "outliers" is not supported and will be ignored. Skipping it
WARN      PMML Reader     File "C:\Documents and Settings\Marta\Desktop\EMPMML.xml" is not a valid PMML file:
Only logistic activation function is supported in KNIME MLP.
WARN      PMML Reader     org.xml.sax.SAXException: Only logistic activation function is supported in KNIME MLP.
 

With them, I can't execute the node.

Thank you,

 

Marta

Hi Marta,

KNIME accepts this version but does not consume everything that is defined in the PMML standard as it is very comprehensive. Unfortunately only a logistic activation function is supported in KNIME MLP. We cannot handle other activation functions so far. Sorry for that.

Dominik

Ok thanks, Dominik.

I wonder if is it possible to do the data mining modeling is KNIME (instead of using Enterprise Miner). In this casa, does KNIME generate PMML code?

Many thanks,

Marta

Hi Marta,

yes, you can definitely do the data mining in KNIME. You can also have a look at the nodes that come with the WEKA extension for KNIME. They offer even more mining opportunities.

The KNIME learner are storing their models in PMML. You can write them to disk by using the PMML Writer.

Best Regards,
Dominik

Thank you Dominik, we are definitely going to do the mining in KNIME.

Cheers,

Marta

I have installed the Weka plugin but I can't find neural networks - does not Weka have them?

Thanks you,

Marta

Hi Marta,

You find all these neural network nodes in the Weka >> Classification Algorithms >> functions category within the Node Repository.

Regards, Thomas

Thank you , Thomas.

Kind regards,

Marta