source: orange/Orange/testing/regression/tests_20/ @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 408 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.