Frequent Pattern Mining
Scala Shell
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
project
src/main/scala
LICENSE
README.md
build.sbt Update template for PIO v0.10.0-incubating Feb 4, 2017
engine.json
template.json

README.md

pio-template-fpm

Frequent Pattern Mining

This PredictionIO template is based on FP Growth algorithm described in MLlib - Frequent Pattern Mining and in API org.apache.spark.mllib.fpm.FPGrowth

Deployment

pio template get goliasz/pio-template-fpm --version "0.3.1" fpm1
cd fpm1
pio build --verbose
pio app new fpm1 --access-key 1234
sh data/import_test.sh <<APP_ID>>
nano engine.json <-- set APP_NAME to fpm1
pio train
pio deploy --port 8200 &

Test

curl -i -X POST http://localhost:8200/queries.json -H "Content-Type: application/json" -d '{"items":["t", "y"]}'

Should give in result

{"consequentItems":[{"items":["x"],"confidence":1.0},{"items":["z"],"confidence":1.0}]}

Compatibility

0.3.1 - compatible with PIO v.0.10.0-incubating

0.2.1 - compatible with PIO v.0.9.5

License

This Software is licensed under the Apache Software Foundation version 2 licence found here: http://www.apache.org/licenses/LICENSE-2.0