Skip to content

reevesba/tana2tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tanagra Parser

tana2tree is a Python module for converting a Tanagra tree description into a more usable format.

Tanagra is a free suite of machine learning software for research and academic purposes developed by Ricco Rakotomalala at the Lumière University Lyon 2, France. Tanagra supports several standard data mining tasks such as Visualization, Descriptive statistics, Instance selection, feature selection, feature construction, regression, factor analysis, clustering, classification and association rule learning.

Click here to vist the Tanagra website. This is where you can find the downloads.

Installation

Dependencies

  • Python >= 3.6
  • time module
  • re module

User Installation

pip install tana2tree

Using tana2tree

  1. Copy results from Tanagra

  2. Save results to text file

  3. Pass text file in program.

    import tana2tree as t2t
    
    def main():
        # get tanagra description as input
        input_file = "example/tanagra-output.txt"
        
        # build the tree, returns root node
        tree = t2t.Tanagra_Parser()
        print("Tree: ")
        print(tree.parse(input_file))
    

    A full example is given with all available methods here.

About

This packages parses a Tanagra html description into usable formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages