title: PyBrain how to interpret the results from net.activate?
body: <p>I've trained a network on PyBrain for purpose of classification and am ready to fire away with specific input.  However, when I do</p>
  
  <pre>
  <code>
  
  classes = ['apple', 'orange', 'peach', 'banana']
  
  data = ClassificationDataSet(len(input), 1, nb_classes=len(classes), class_labels=classes)
  
  data._convertToOneOfMany( )                 # recommended by PyBrain
  
  fnn = buildNetwork( data.indim, 5, data.outdim, outclass=SoftmaxLayer ) 
  
  trainer = BackpropTrainer( fnn, dataset=data, momentum=m, verbose=True, weightdecay=wd)
  
  trainer.trainUntilConvergence(maxEpochs=80)
  
  # stop training and start using my trained network here
  
  output = fnn.activate(input)
  
  </code>
  </pre>
  
  <p>As expected, I get a numeric value for "output", but is there a way to determine the predicted class label directly?  Even if there's not one, how can I map the value of "output" to my class label? Thank you for your help.</p>