In this example, we'll use the Apriori algorithm to analyze a retail dataset. Start by creating a new folder for this project called Ch6-Apriori, and add the following package.json file:
{
"name": "Ch6-Apriori",
"version": "1.0.0",
"description": "ML in JS Example for Chapter 6 - Association Rules",
"main": "src/index.js",
"author": "Burak Kanber",
"license": "MIT",
"scripts": {
"build-web": "browserify src/index.js -o dist/index.js -t [ babelify --presets [ env ] ]",
"build-cli": "browserify src/index.js --node -o dist/index.js -t [ babelify --presets [ env ] ]",
"start": "yarn build-cli && node dist/index.js"
},
"dependencies...