m_eval.evaluateModel(ce.getClassifier(), ce.getTestSet());
m_eval.evaluateModel(ce.getClassifier(), ce.getTestSet().getDataSet());
  public void acceptClassifier(final BatchClassifierEvent ce) {    try {      if (m_evaluateThread == null) {	m_evaluateThread = new Thread() {	    public void run() {	      final String oldText = m_visual.getText();	      try {		if (ce.getSetNumber() == 1 || 		    ce.getClassifier() != m_classifier) {		  m_eval = new Evaluation(ce.getTestSet());		  m_classifier = ce.getClassifier();		}				if (ce.getSetNumber() <= ce.getMaxSetNumber()) {		  m_visual.setText("Evaluating ("+ce.getSetNumber()+")...");		  if (m_logger != null) {		    m_logger.statusMessage("ClassifierPerformaceEvaluator : "					   +"evaluating ("+ce.getSetNumber()					   +")...");		  }		  m_visual.setAnimated();		  m_eval.evaluateModel(ce.getClassifier(), ce.getTestSet());		}				if (ce.getSetNumber() == ce.getMaxSetNumber()) {		  System.err.println(m_eval.toSummaryString());		  // m_resultsString.append(m_eval.toSummaryString());		  // m_outText.setText(m_resultsString.toString());		  String textTitle = m_classifier.getClass().getName();		  textTitle = 		    textTitle.substring(textTitle.lastIndexOf('.')+1,					textTitle.length());		  TextEvent te = 		    new TextEvent(ClassifierPerformanceEvaluator.this, 				  m_eval.toSummaryString(),				  textTitle);		  notifyTextListeners(te);		  if (m_logger != null) {		    m_logger.statusMessage("Done.");		  }		}	      } catch (Exception ex) {		ex.printStackTrace();	      } finally {		m_visual.setText(oldText);		m_visual.setStatic();		m_evaluateThread = null;		if (isInterrupted()) {		  if (m_logger != null) {		    m_logger.logMessage("Evaluation interrupted!");		    m_logger.statusMessage("OK");		  }		}		block(false);	      }	    }	  };	m_evaluateThread.setPriority(Thread.MIN_PRIORITY);	m_evaluateThread.start();	// make sure the thread is still running before we block	//	if (m_evaluateThread.isAlive()) {	block(true);	  //	}	m_evaluateThread = null;      }    }  catch (Exception ex) {      ex.printStackTrace();    }  }