Skip to content

A java implementation of the FPGrowth algorithm

License

Notifications You must be signed in to change notification settings

CRyan2016/fpgrowth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPGrowth Build status Coverage status

A java implementation of the FPGrowth algorithm

Usage

Create a jar and run it:

git clone git@github.com:relekang/fpgrowth.git && cd fpgrowth
mvn assembly:assembly
java -jar target/FPGrowth-jar-with-dependencies.jar <path-to-file> <minimum support>

Or use it in code:

double minSupport = 0.9;
boolean pruneTreeOnInsert = true;
Map<Integer, Integer> oneItemsetCounts = FPGrowth.getOneItemsetCounts(transactions);
List<List<Integer> frequentItemsets = FPGrowth.findFrequentItemsetWithSuffix(
  FPGrowth.buildFPTree(transactions, oneItemsetCounts, pruneTreeOnInsert, minSupport),
  new ArrayList<Integer>(),
  ((int) minSupport * transactions.size())
);

MIT © Rolf Erik Lekang

About

A java implementation of the FPGrowth algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%