JPMML Cascading

JPMML Cascading library

License

License

Categories

Categories

JPMML Business Logic Libraries Machine Learning
GroupId

GroupId

org.jpmml
ArtifactId

ArtifactId

pmml-cascading
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

JPMML Cascading
JPMML Cascading library

Download pmml-cascading

How to add to project

<!-- https://jarcasting.com/artifacts/org.jpmml/pmml-cascading/ -->
<dependency>
    <groupId>org.jpmml</groupId>
    <artifactId>pmml-cascading</artifactId>
    <version>1.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.jpmml/pmml-cascading/
implementation 'org.jpmml:pmml-cascading:1.2.2'
// https://jarcasting.com/artifacts/org.jpmml/pmml-cascading/
implementation ("org.jpmml:pmml-cascading:1.2.2")
'org.jpmml:pmml-cascading:jar:1.2.2'
<dependency org="org.jpmml" name="pmml-cascading" rev="1.2.2">
  <artifact name="pmml-cascading" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jpmml', module='pmml-cascading', version='1.2.2')
)
libraryDependencies += "org.jpmml" % "pmml-cascading" % "1.2.2"
[org.jpmml/pmml-cascading "1.2.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.jpmml : pmml-evaluator jar 1.2.11

provided (2)

Group / Artifact Type Version
cascading » cascading-core jar [2.2.0, 2.7.1]
cascading » cascading-hadoop jar [2.2.0, 2.7.1]

Project Modules

There are no modules declared in this project.

JPMML-Cascading Build Status

PMML evaluator library for the [Cascading application framework] (http://www.cascading.org).

Features

Prerequisites

  • Cascading application framework version 2.2.0 or greater.

Installation

Library

JPMML-Cascading library JAR file is released via [Maven Central Repository] (http://repo1.maven.org/maven2/org/jpmml/).

The current version is 1.2.2 (19 February, 2016).

<dependency>
	<groupId>org.jpmml</groupId>
	<artifactId>pmml-cascading</artifactId>
	<version>1.2.2</version>
</dependency>

Example Hadoop job

Enter the project root directory and build using [Apache Maven] (http://maven.apache.org/):

mvn clean install

The build produces two JAR files:

  • pmml-cascading/target/pmml-cascading-1.2-SNAPSHOT.jar - Library JAR file.
  • pmml-cascading-example/target/example-1.2-SNAPSHOT-job.jar - Example Hadoop job JAR file.

Usage

Library

Constructing an instance of Cascading planner class org.jpmml.cascading.PMMLPlanner based on a PMML document in local filesystem:

File pmmlFile = ...;
Evaluator evaluator = PMMLPlannerUtil.createEvaluator(pmmlFile);
PMMLPlanner pmmlPlanner = new PMMLPlanner(evaluator);

Building a simple flow for scoring data:

FlowDef flowDef = ...;

flowDef = flowDef.addSource("input", ...);
flowDef = flowDef.addSink("output", ...);

pmmlPlanner.setHeadName("input");
pmmlPlanner.setTailName("output");

flowDef = flowDef.addAssemblyPlanner(pmmlPlanner);

Please see [the example application] (https://github.com/jpmml/jpmml-cascading/blob/master/pmml-cascading-example/src/main/java/org/jpmml/cascading/Main.java) for full picture.

Example Hadoop job

The example Hadoop job JAR file contains a single executable class org.jpmml.cascading.Main.

This class expects three command-line arguments:

  1. The path of the model PMML file in local filesystem.
  2. The path of the Cascading source CSV resource in Hadoop filesystem.
  3. The path of the Cascading sink CSV resource in Hadoop filesystem.

For example:

hadoop jar example-1.2-SNAPSHOT-job.jar /tmp/cascading/model.pmml file:///tmp/cascading/input.csv file:///tmp/cascading/output

License

JPMML-Cascading is dual-licensed under the [GNU Affero General Public License (AGPL) version 3.0] (http://www.gnu.org/licenses/agpl-3.0.html) and a commercial license.

Additional information

Please contact [[email protected]] (mailto:[email protected])

org.jpmml

Java PMML API

Java libraries for producing and consuming PMML documents

Versions

Version
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0