Java 类weka.core.SingleIndex 实例源码

项目:multisearch-weka-package    文件:MultiSearch.java   
/**
 * the default constructor.
 */
public MultiSearch() {
  super();

  m_Factory           = newFactory();
  m_Metrics           = m_Factory.newMetrics();
  m_Evaluation        = m_Metrics.getDefaultMetric();
  m_ClassLabel        = new SingleIndex("1");
  m_Classifier        = defaultClassifier();
  m_DefaultParameters = defaultSearchParameters();
  m_Parameters        = defaultSearchParameters();
  m_Algorithm         = defaultAlgorithm();
  m_Trace             = new ArrayList<Entry<Integer, Performance>>();

  try {
    m_BestClassifier = new SearchResult();
    m_BestClassifier.classifier = AbstractClassifier.makeCopy(m_Classifier);
  }
  catch (Exception e) {
    System.err.println("Failed to create copy of default classifier!");
    e.printStackTrace();
  }
}