Showing posts with label DMG. Show all posts
Showing posts with label DMG. Show all posts

Thursday, February 27, 2014

PMML 4.2 is here! What changed? What is new?

PMML 4.2 is out! That's really great. The DMG (Data Mining Group) has been working on this new version of PMML for over two years now. And, I can truly say, it is the best PMML ever! If you haven't seen the press release for the new version, please see posting below:

http://www.kdnuggets.com/2014/02/data-mining-group-pmml-v42-predictive-modeling-standard.html

What changed?

PMML is a very mature language. And so, there isn't really dramatic changes in the language at this point. One noteworthy change is that old PMML used to call the target field on a predictive model "predicted". This was confusing since a predicted field is usually the result of scoring or executing a model. The score so to speak. Well, PMML 4.2 clears things up a bit. The target field is now simply "target". A small change, but a huge step towards making it clear that the Output element is where the predicted outputs should be defined.

Continuous Inputs for Naive Bayes Models

This is a great new enhancement to the NaiveBayes model element. We wrote an entire paper about this new feature and presented it at the KDD 2013 PMML Workshop. If you use Naive Bayes models, you should definitely take a look at our article.


And, now you can benefit from actually having our proposed changes in PMML itself! This is really remarkable and we are all already benefiting from it. The Zementis Py2PMML (Python to PMML) Converter uses the proposed changes to convert Gaussian Naive Bayes models from scikit-learn to PMML.

Complex Point Allocation for Scorecards

The Scorecard model element was introduced to PMML in version 4.1. It was a good element then, but it is really great now in PMML 4.2. We added to it a way for computing complex values for the allocation of points for an attribute (under a certain characteristic) through the use of expressions. That means, you can use input or derived values to derive the actual value for the points. Very cool! 

Andy Flint (FICO) and I wrote a paper about the Scorecard element for the KDD 2011 PMML Workshop. So, if you haven't seen it yet, it will get you started into how to use PMML to represent scorecards and reason codes.

Revised Output Element

The output element was completely revised. It is much simpler to use. With PMML 4.2, you have direct access to all the model outputs + all post-processing directly from the attribute "feature".

The attribute segmentId also allows users to output particular fields from segments in a multiple model scenario. 

The newly revised output element spells flexibility. It allows you to get what you need out of your predictive solutions.

For a complete list of all the changes in PMML 4.2 (small and large), see:

What is new?

PMML 4.2 introduces the use of regular expressions to PMML. This is solely so that users can process text more efficiently. The most straightforward additions are simple: 3 new built-in functions for concatenating, replacing and matching strings using regular expressions.

The more elaborate addition is the incorporation of a brand new transformation element in PMML to extract term frequencies from text. The ideas for this element were presented at the KDD 2013 PMML Workshop by Benjamin De Boe, Misha Bouzinier, Dirk Van Hyfte (InterSystems). Their paper is a great resource for finding out the details behind the ideas that led to the new text mining element in PMML. 


Obviously, the changes described above are also new, but it was nice to break the news into two pieces. For the grand-finale though, nothing better than taking a look at PMML 4.2 itself. 


Enjoy!

Thursday, March 17, 2011

Data Transformations in PMML: New Interactive Tool Available

PMML (Predictive Model Markup Language) is the de facto standard used to represent and share predictive analytic solutions between applications. It enables data mining scientists and users alike to easily build, visualize, and deploy their solutions using different platforms and systems.

PMML is the brain child of the DMG (Data Mining Group), an independent, vendor led consortium that develops data mining standards. Besides developing PMML, another DMG goal is to make learning material and PMML tools available to the data mining community. Last year, the first book about PMML was published. This book, entitled "PMML in Action: Unleashing the Power of Open Standards for Data Mining and Predictive Analytics", is now available for purchase on Amazon.com.

And so, as part of the DMG's continuing commitment to the success and adoption of the PMML standard, it is our pleasure to announce today the availability of a PMML tool, companion to the book: "PMML in Action", that provides an interactive, hands-on approach to the generation of data transformations.


To access the tool, simply click HERE (or click on the "Transformations Generator" link available on the DMG website).


PMML provides a variety of data transformations, including value mapping, normalization, and discretization. It also offers several built-in functions as well as arithmetic and logical operators which can be combined to represent complex pre-processing steps. In here we show two of the available operations in the interactive PMML tool: "Value Mapping" and the "Generic Operation".


Value Mapping


The figure below shows the "Value Mapping" transformation as represented by the transformations generator tool. The left side shows the graphical representation of the mapping of primary colors to numbers. The left side shows the corresponding PMML code generated by the tool.


Generic Operation

The "Generic Operation" allows users to use the "IF-THEN" and "IF-THEN-ELSE" constructs besides logical and arithmetic operators. The figure below shows the graphical representation and expression tree for the following construct:

IF isMissing (primaryColor)
THEN processedColor = 4

The right sides shows the interface together with the expression tree while the left side shows the respective PMML code.



Start building your own transformations in PMML today! To access the transformations generator tool, simply click HERE.

Wednesday, October 14, 2009

Open standards for data mining and the need for training material


PMML awareness is growing. Many companies have recently joined the DMG (Data Mining Group) and others are already in the process of adopting PMML as their main vehicle to represent models and data manipulation. The availability of PMML resources is key to its success.

Zementis and the other DMG members are committed to publish training material on PMML. We have posted many PMML tutorials on our support pages which are already being used by the community at large.

We realized though that there aren't that many presentations about PMML out there. So, we decided to make one available. To download it, click HERE. Hope you find it useful! And, feel free to pass it around.

The same presentation is also available in the Analytic Bridge website (PMML discussion group).

Welcome to the World of Predictive Analytics!

© Predictive Analytics by Zementis, Inc. - All Rights Reserved.





Copyright © 2009 Zementis Incorporated. All rights reserved.

Privacy - Terms Of Use - Contact Us