Download the PHP package codedheartinside/apriori without Composer
On this page you can find all versions of the php package codedheartinside/apriori. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codedheartinside/apriori
More information about codedheartinside/apriori
Files in codedheartinside/apriori
Package apriori
Short Description Apriori data analysing algorithm written within PHP.
License MIT
Homepage https://github.com/codedheartinside/php-apriori.git
Informations about the package apriori
PHP Apriori
This package is meant for implementing the Apriori algorithm as a microservice.
Installation:
Enable composer in your project
Add the package to your composer.json file
Load the files and create the autoload file
Download the files
Add the autoloader for the files into your project
Set up the running environment
To set up the running environment for the package, run the installer
Usage
Configuration
You first need to create a configuration with the rules for the algorithm
Defining the data set
After that, all is set to run the algorithm on a data set. The data set can be added through the addDataSet function.
Running the algorithm
To run the the algorithm on the data set, provide the Apriori class with the configuration and call the run function.
Retrieving the data
After running the algorithm, the records with the statistics for support and confidence become retrievable.
Support is the time a item combination occurs in all of the provided item sets.
To get the records with the support statistics:
Confidence is the times a article occurs in combination with the other items
To get the records with the confidence statistics