Welcome to the technical support knowledge base for ADAPA on the Cloud. Our blogs cover general questions and information related to predictive models, PMML, and supported functionality of the ADAPA decision engine. Please use the search tool or the FAQ Categories to the left to find the information you are looking for. If you can't find it, feel free to contact us.

© Zementis, Inc. - All Rights Reserved.

Thursday, June 4, 2009

How to execute PMML Mining Models exported from KXEN in ADAPA?

KXEN exports PMML models. These can be readily uploaded into ADAPA (regression and clustering models) for execution.

The latest KXEN software exports perfect PMML models. However, if you are using an older version of KXEN, you may want to use the PMML Converter to diagnose the health of your model and have any issues automatically corrected before attempting upload into ADAPA. Existing hic-ups can be easily resolved.

In this blog we will focus on how to score Mining Models in ADAPA. These are KXEN regression models that output a probability. They are represented in PMML by a MiningModel element which is not currently supported by ADAPA.

First, you need to verify that your Mining Model contains two regression tables. The goal here is to create two PMML files out of the file exported by KXEN. Once the two files are created, they can be easily uploaded into ADAPA. Scoring becomes sequential. You will first pass data through the first model and use its output as input to the second model.

For the first model, delete the LocalTransformations element (containing the normalization of variable "intermediate_value") as well as the second regression table (for which the only NumericPredictor is named "kxen_post_processing". Also, rename your predicted variable in the DataDictionary and MiningSchema elements to "intermediate_value". This is the output of the first model.

For the second model, create a DataDictionary element with two fields: 1) the "intermediate_value" which is the only input for this model; and 2) the predicted field - for this you can use the name of the predicted variable from the original KXEN export. The example below assumes this to be "rr_color". Then create a regression model containing the LocalTransformations element of the original model together with its second regression table. See example below.


The two models will work as expected if executed in sequence. In the ADAPA web console, you can score the input data against the first model, obtain its output and use it as input to the second model. You can also automate these tasks by using web-service calls to ADAPA.

0 comments:






Copyright © 2009 Zementis Incorporated. All rights reserved.

Privacy - Terms Of Use - Contact Us