simple-apriori
Version:
Simple Apriori adalah library simple yang menerapkan metode Aprirori
28 lines (21 loc) • 845 B
Markdown
# Apriori
Npm Package for algoritma Apriori
## How To Use
```
const apriori = require('simple-apriori');
var dataset = [
'Pecel, Nasi Goreng, Tahu Campur, Tahu Telor, Sate, Bebek, Rawon, Rujak Cingur',
'Nasi Goreng, Sego Sambel, Rujak Cingur, Bebek, Lontong Balap, Tahu Telor',
'Rujak Cingur, Sego Sambel, Nasi Goreng, Sate, Bebek, Lontong Balap, Pecel',
'Tahu Campur, Sate, Nasi Goreng',
'Sego Sambel, Sate, Rujak Cingur, Nasi Goreng',
'Tahu Campur, Nasi Goreng, Sate, Tahu Telor, Lontong Balap, Bebek',
'Tahu Campur, Pecel, Sego Sambel, Rujak Cingur, Sate',
'Bebek, Sego Sambel',
'Nasi Goreng, Sego Sambel, Tahu Campur, Tahu Telor',
'Sego Sambel, Rujak Cingur'
];
var support = 40;
var confidence = 40;
console.log(apriori.getApriori(dataset, support, confidence));
```