Giter Site home page Giter Site logo

cmtreeminer_ordered's Introduction

CMTreeMiner Ordered: an algorithm for mining closed and maximal frequent rooted ordered trees

Citation information:

[1] Yun Chi, Yirong Yang, Yi Xia, and Richard R. Muntz. Cmtreeminer: Mining both closed and maximal frequent subtrees. In PAKDD'04: Proceedings of the 8th Pacific-Asia in Knowledge Discovery and Data Mining, pages 63-73, Sydney, Australia, 2004. Springer.

[2] Yun Chi, Yi Xia, Yirong Yang, and Richard R. Muntz. Mining closed and maximal frequent subtrees from databases of labeled rooted trees. IEEE Trans. Knowl. Data Eng., 17(2):190-202, 2005.

  1. The input should be text file in Professor Zaki's string encoding form: each line represents a transaction; the first two numbers are identical, they are tids; the 3rd number represents the length of the remaining string; the rest string is a depth-first traversal of the rooted ordered tree, where "-1" means a backtrack. For example, here is a database with 3 rooted ordered trees.

0 0 15 1 2 3 -1 4 -1 5 -1 -1 6 7 -1 8 -1 -1

1 1 15 1 2 3 -1 4 -1 5 -1 -1 6 7 8 -1 -1 -1

2 2 9 1 6 7 8 9 -1 -1 -1 -1

  1. The above database is given in "example_rooted_ordered.txt". Notice that the trees have no edge labels.

  2. Usage: CMOrderedTreeMiner support input_file output_file where support is an integer, i.e., minimal number of occurrence

  3. Output file contains the running time. It also contains the number of trees that have been checked by the algorithm, the number of closed trees, and the number of maximal trees, for each tree size.

cmtreeminer_ordered's People

Contributors

yunchi avatar

Watchers

James Cloos avatar  avatar

cmtreeminer_ordered's Issues

How to print the closed pattern

Hi,
I would like to print the closed sub-tree in the output. However, I don't see such option in the program.

Please let me know how can I print closed sub-tree?

Applied on labeled tree as HTML DOM

Hi,
Is it possible to change the code in order to apply it on labeled trees like this:
1 1 51 div div div div i -1 -1 -1 a img -1 -1 div span -1 -1 -1 div h2 a -1 -1 div p span -1 span -1 -1 p span -1 span -1 -1 -1 div a i -1 span -1 -1 a -1 div -1 -1 -1 -1 -1
2 2 38 div div div div i -1 -1 -1 a img -1 -1 -1 div h2 a -1 -1 div span span -1 -1 -1 div a i -1 span -1 -1 div -1 -1 -1 -1 -1 -1

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.