source: orange/Orange/doc/modules/sql3.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 408 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1# Description: Reads a data from MySQL data base and constructs a classification tree
2# Category:    file formats
3# Classes:     orngMySQL.Connect
4# Referenced:  orngMySQL.htm
5
6import orange, orngMySQL, orngTree
7
8t = orngMySQL.Connect('localhost','root','','test')
9data = t.query("SELECT * FROM busclass")
10tree = orngTree.TreeLearner(data)
11orngTree.printTxt(tree, nodeStr="%V (%1.0N)", leafStr="%V (%1.0N)")
Note: See TracBrowser for help on using the repository browser.