From the course: Data Science Foundations: Data Mining in Python

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

FP-Growth

FP-Growth - Python Tutorial

From the course: Data Science Foundations: Data Mining in Python

Start my 1-month free trial

FP-Growth

- [Instructor] The final method of association analysis I want to demonstrate is called FP Growth, which stands for frequent pattern growth. And again, while a lot of the results are going to look very similar, this goes about the process in a dramatically different way by creating frequent pattern trees. And it does it in a way that can make the processing massively more efficient when you have data sets that have repeated patterns of associations. 'Cause it simply creates the association wants, and then counts when it happens again. To do this in Python, we're again going to have to install a new package. This one's called ML extend for machine learning extend. You can either run this command, uncomment it and run it. Or this one, I had to do this one down here, uncomment these two lines and run them. It only has to be done once per machine. And once we've got that loaded, we can get the data. What's funny is we do it in…

Contents