Skip to content

modyabhi/Fp-Growth-Unique-Rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fp Growth Unique Rules

The included jupyter notebook purges rules/associations that are duplicates by simple pandas duplication removal procedure.

Methodology

The return dataframe from the association_rules contains two columns with our original sets of products => antecedents & consequents. The frozensets are first converted into normal sets then merged & sorted stringified.

duplicates are then handled by pandas drop_duplicates.

This solution might not work for all scenarios & might also have performance issues with 1000's of products and sales overtime.

About

Purge duplicate associtions to get a unique set of rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published