"""Example of orangeSNNS

Creates and trains a neural network with default parameters.  The
network is used to classify the training set showing the predicted
class for each example.

"""

import orange, orangeSNNS

data = orange.ExampleTable("bupa.tab")

learner = orangeSNNS.SNNSLearner()

classifier = learner(data)

for example in data:
   print example,
   print "->", classifier(example)
