Git Product home page Git Product logo

apriori-algorithm's Introduction

Apriori Algorithm

This is a Data Mining and Machine Learning algorithm called Apriori Algorithm. It takes input and generates association rules.

Getting Started

  • Clone this repo and fire up generateDatabse.py file.
  • This file will create the five sample data sources for testing purposes.
  • Ones you see the .txt data source files in your prject folder, you are ready to go.
  • Now fire up AprioriAlgorithm.py file which is the actual code for this algorithm.

Prerequisites

Need to have python 3.6 installed on your machine. Other version support will be provided as soon as possible.

Running the tests

  • The program takes data source, Minimum Support in percentage and Minimum Confidence in percentage as input.
  • Data Source: This is to select where the input is coming from. For this test, the data is coming from one of the five files that were created using generateDatabse.py.
  • Minimum Support: A minimum support is applied to find all frequent itemsets in a database.
  • Minimum Confidence: A minimum confidence is applied to these frequent itemsets in order to form rules.
  • Result: The result will show the association rules in the given dataset with the given minimum support and minimum confidence if there are any. If there are no association rules in the the set with the given support and confidence conditions, try to plug in some different (if you didn't get any results, try feeding some lower values) values of them.

Deployment

  • You are welcomed to modify generateDatabse.py file and try to come up with some new data set.
  • You can use any data set which is a text file, comma seperated items and one transaction per line.

Built With

Fork the repo and try to come up with some optimized version of the algorithm.

Author

Social

It is crucial to stay social ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.