In [2]: orange.version
Out[2]: '2.0b (10:34:33, Mar 17 2010)'
uname -a: Linux shigella 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:40:52 UTC 2010 i686 GNU/Linux
eliasz@shigella:~/workspace/pytolenie$ ./otest.py 1
zoo.tab <amphibian, bird, fish, insect, invertebrate, mammal, reptile>
Tree saved to zoo.tab.tree
classVar: <amphibian, bird, fish, insect, invertebrate, mammal, reptile>
eliasz@shigella:~/workspace/pytolenie$ ./otest.py a
Tree loaded from zoo.tab.tree
classVar: <amphibian, bird, fish, insect, invertebrate, mammal, reptile>
milk = 1: mammal (41.0)
milk = 0:
| feathers = 1: bird (20.0)
| feathers = 0:
| | fins = 1: fish (13.0)
| | fins = 0:
| | | backbone = 0:
| | | | airborne = 1: insect (6.0)
| | | | airborne = 0:
| | | | | predator = 1: invertebrate (8.0)
| | | | | predator = 0:
| | | | | | legs = 0: invertebrate (2.0)
| | | | | | legs = 2: insect (0.0)
| | | | | | legs = 4: insect (0.0)
| | | | | | legs = 5: insect (0.0)
| | | | | | legs = 6: insect (2.0)
| | | | | | legs = 8: insect (0.0)
| | | backbone = 1:
| | | | tail = 0: amphibian (3.0)
| | | | tail = 1: reptile (6.0)
eliasz@shigella:~/workspace/pytolenie$ ./otest.py 21r
zoo2.tab <food, mammal, monster>
Tree saved to zoo2.tab.tree
classVar: <food, mammal, monster>
zoo.tab <food, mammal, monster, amphibian, bird, fish, insect, invertebrate, reptile>
Tree saved to zoo.tab.tree
classVar: <food, mammal, monster, amphibian, bird, fish, insect, invertebrate, reptile>
eliasz@shigella:~/workspace/pytolenie$ ./otest.py a
Tree loaded from zoo.tab.tree
classVar: <food, mammal, monster, amphibian, bird, fish, insect, invertebrate, reptile>
backbone = 1:
| feathers = 1: bird (20.0)
| feathers = 0:
| | milk = 1: mammal (41.0)
| | milk = 0:
| | | fins = 1: fish (13.0)
| | | fins = 0:
| | | | tail = 0: amphibian (3.0)
| | | | tail = 1: reptile (6.0)
backbone = 0:
| airborne = 1: insect (6.0)
| airborne = 0:
| | predator = 1: invertebrate (8.0)
| | predator = 0:
| | | legs = 0: invertebrate (2.0)
| | | legs = 4: insect (0.0)
| | | legs = 2: insect (0.0)
| | | legs = 5: insect (0.0)
| | | legs = 6: insect (2.0)
| | | legs = 8: insect (0.0)