source: orange/orange/doc/modules/ @ 2429:2bd4005e5b2e

Revision 2429:2bd4005e5b2e, 408 bytes checked in by blaz <blaz.zupan@…>, 8 years ago (diff)

files providing documentation for orngMySQL module

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
6import orange, orngMySQL, orngTree
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.