/aprioriJS

A simple Apriori implementation in JS

💻 Apriori

Apriori Algorithm implementation in JavaScript

🔧 Usage

// change the minimum support and confidence
const minSupp = 0.01;
const minConf = 3;

// enter your product list and dataset in binary format
var dataset = [[1, 0, 0, ..., 1, 1], [1, 0, 0, ..., 1, 1], ..., [1, 0, 0, ..., 1, 1]];
var productList = ['almonds','antioxydant juice','asparagus','avocado', ... ,'yogurt cake','zucchini'];

Compile with Node.JS