Thursday, February 7, 2008

How can I export PMML code from older versions of SPSS?

In older versions of SPSS, like SPSS 11.5, a linear regression model can be exported to PMML by going through the following sequence of menus: Analyze -> Regression -> Linear... -> Save... You will find yourself in box "Linear Regression: Save". Enter the file name and location you want the PMML file to be written to in "Export model information to XML file" at the bottom of the "Save" box.

After the model is trained, a file will be created in the specified location containing a PMML representation of your linear regression model. A similar sequence of actions and results should work for Multinomial Logistic models.

Important things to notice about the PMML file:

1) The model is represented as a general regression PMML element;

2) For older versions of SPSS (like 11.5), the export is in PMML 2.0. This file will need to be converted to PMML 3.2 before it can be uploaded into ADAPA.

3) For SPSS versions up to version 14, data transformations are not part of the PMML file. Therefore, you will need to add any data transformations manually.

0 comments: