From 6917ef10f20d2c6de92e5432b9483d9648d8b0c0 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 13 Apr 2010 07:05:13 +0900 Subject: progs/gallium: Move into src/gallium/tests Two reasons: - progs will eventually have its own repository - it is just to easy to forget updating the code for interface changes when it is outside of src --- progs/gallium/python/tests/tree.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 progs/gallium/python/tests/tree.py (limited to 'progs/gallium/python/tests/tree.py') diff --git a/progs/gallium/python/tests/tree.py b/progs/gallium/python/tests/tree.py deleted file mode 100755 index 0c1bcda4cf..0000000000 --- a/progs/gallium/python/tests/tree.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -# -# See also: -# http://www.ailab.si/orange/doc/ofb/c_otherclass.htm - -import os.path -import sys - -import orange -import orngTree - -for arg in sys.argv[1:]: - name, ext = os.path.splitext(arg) - - data = orange.ExampleTable(arg) - - tree = orngTree.TreeLearner(data, sameMajorityPruning=1, mForPruning=2) - - orngTree.printTxt(tree) - - file(name+'.txt', 'wt').write(orngTree.dumpTree(tree) + '\n') - - orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box') -- cgit v1.2.3