rfahmi/ai
Composer 安装命令:
composer require rfahmi/ai
包简介
Implementasi algoritma apriori
README 文档
README
This is ML and DM Class written in PHP OOP, currently only support "Apriori"
This package is made for my college research purpose. But I made it opensource, so everyone can use this class for their projects (if needed) Written by: Fahmi Rizalul
Installation
All you need is just install this package into your project using composer.
$ composer require rfahmi/ai
That's all.
Features
Currently only support Apriori
Usage
Initialize
$apriori = new Apriori(); $apriori->setSupport(3); $apriori->setConfidence(0.7);
Train Model
$items = ['A', 'B', 'C', 'D', 'E']; $transactions = [ ['A', 'B', 'C'], ['A', 'C'], ['A', 'B', 'D'], ['A', 'D'], ['B', 'C', 'E'], ]; $apriori->train($items, $transactions);
Get Rules & Frequent Set
$apriori->getRules(); $apriori->getFrequentset();
Prediction
$apriori->predict(['A']);
Support
Reach out to me at one of the following places!
- Website at
rfahmi.com - Instagram at
Fahmi Rizalul
Buy me coffee and snacks
License
- MIT license
- Copyright 2020 © Fahmi Rizalul.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-06