Git Product home page Git Product logo

treegen's Introduction

TreeGen Algorithm

Contains the synthetic tree generator described in [2005-treeminer:tkde]

Relevant Publications

  • [2005-treeminer:tkde] Mohammed J. Zaki. Efficiently mining frequent trees in a forest: algorithms and applications. IEEE Transactions on Knowledge and Data Engineering, 17(8):1021โ€“1035, August 2005. special issue on Mining Biological Data. doi:10.1109/TKDE.2005.125.

HOW TO

  1. type tree_gen to see the options.

     -d : Depth, default 5
     -f : Fan out factor, default 5
     -a : ascii output flag
     -b : use random subtree root as starting root
     -n : Number of items, default 10
     -m : Total number of nodes in parent tree
     -o : out file name (required)
     -p : output parent tree as database
     -s : seed for random number gen
     -t : Number of subtrees, default 100      
    

The program first generates a master tree with total m nodes with avg depth d and fanout f from n items (or labels)

  1. you can output this parent tree in the file name specified by -o (and with -a if you want ascii output), by specifying -p option

  2. you can generate t subtrees from the parent by omitting -p option and specifying the file name -o (with -a for ascii).

example run:

tree_gen -f 6 -d 10 -n 100 -m 1000 -o xxx -a -t 1000

to produce a pool of 1000 trees from the master.

If you want to know the master tree, run:

tree_gen -f 6 -d 10 -n 100 -m 1000 -o xxx.master -a -t 1000 -p

treegen's People

Contributors

zakimjz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

damascenodiego

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.