Creating a Simple Model in R and Consuming It in Kamanja

LigaData has released a video showing the training of a simple model, capturing the model by producing PMML, then testing the PMML by using part of Kamanja to execute that model. This video shows a quick test situation and has the benefit of using the PMML in Kamanja without deploying the entire Kamanja suite. This … Read More




Kamanja has a core function or user-defined function (UDF) library of over 700 functions that may be used as required within the PMML models being developed to run on a Kamanja cluster. A rich set of date and time functions and other common operations to write software is available.

GROUP BY and Aggregations

GROUP BY is supported in Kamanja PMML currently with one key only (multiple group by keys are not yet supported). The aggregation functions available are those defined in the DMG specification, namely Sum, Min, Max, Avg, Median, and Product. GROUP BY is implemented by a function, GroupBy. For example:

When the GroupBy function executes, … Read More

Java and Scala Native Models

Native models are models that are written directly in the Java or Scala programming languages. Using these models can significantly simplify the model design, because of the difficulties of using PMML. However, using native models adds a few extra steps that are required because Java or Scala code must handle dependencies that cannot be easily … Read More

Java/Scala – Model Configuration Changes

The structure of the model configuration file used in Java/Scala models has changed. New information has been added in this file and the functionality has been expanded to define dependencies. Here is an example. The model config definition has a new syntax as shown below:

InputTypesSets is defined as an array of arrays of … Read More

JTM (JSON Transformation Model)

What is the JSON Transformation Model? JTM stands for JavaScript Object Notation (JSON) Transformation Model. The language is based on JSON map and list (or array) expressions. Some familiarity with JSON is expected. If not, there are numerous books and web-based tutorials on the JSON language. Like all other Kamanja models, JTMs accept one or … Read More