Skip to content

seratch/apriori.js

Repository files navigation

Aprioir.js

Apriori Algorithm implementation in (TypeScript|JavaScript) which is based on https://github.com/asaini/Apriori/blob/master/apriori.py.

Build Status

npm package

NPM

npm install apriori

bower package

http://bower.io/search/?q=apriori

bower install apriori --save-dev

Usage

// curl https://raw.githubusercontent.com/asaini/Apriori/master/INTEGRATED-DATASET.csv -o dataset.csv
// on the Node.js REPL
var Apriori = require('apriori');
new Apriori.Algorithm(0.15, 0.6, false).showAnalysisResultFromFile('dataset.csv');

Development

  • grunt opens an example in your browser
  • grunt test runs all the tests.
  • grunt build creates aprori.js and apriori.min.js

License

the MIT License