GithubHelp home page GithubHelp logo

dushanthimadhushika3 / fp-growth-algorithm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

This algorithm is an improvement to the Apriori method. A frequent pattern is generated without the need for candidate generation. FP growth algorithm represents the database in the form of a tree called a frequent pattern tree or FP tree.

Jupyter Notebook 100.00%
fp-growth-algorithm pyspark python3 bigdata

fp-growth-algorithm's Introduction

FP-Growth-Algorithm

This algorithm is an improvement to the Apriori method. A frequent pattern is generated without the need for candidate generation. FP growth algorithm represents the database in the form of a tree called a frequent pattern tree or FP tree.

This tree structure will maintain the association between the itemsets. The database is fragmented using one frequent item. This fragmented part is called “pattern fragment”. The itemsets of these fragmented patterns are analyzed. Thus with this method, the search for frequent itemsets is reduced comparatively.

In here we have apply FP growth algorithm on cosmetic data set which was extracted from an online store. https://www.kaggle.com/mkechinov/ecommerce-events-history-in-cosmetics-shop

We have selected only the purchase event_type and try to find association rules between user purchase brands. Applied minSup = 0.01 and minCon = 0.01

Result Interpretation 😊 Final output consists of several association rules and one special feature was highlighted. In most of the rules brand Domix and brand Pole were included. The predicted brands in most of the rules consisted of brand Domix and brand Pole. So it can be concluded that customers have more of a trend on buying products from both Domix and Pole brands together.

fp-growth-algorithm's People

Contributors

dushanthimadhushika3 avatar

Stargazers

 avatar

Watchers

 avatar

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.