Examples of relationName()


Examples of weka.core.Instances.relationName()

        try {
    CostCurve cc = new CostCurve();
    Instances result = cc.getCurve(preds, classValue);
    VisualizePanel vmc = new VisualizePanel();
    vmc.setLog(m_Log);
    vmc.setName(result.relationName()+". (Class value "+
          classAtt.value(classValue)+")");
    PlotData2D tempd = new PlotData2D(result);
    tempd.m_displayAllPoints = true;
    tempd.setPlotName(result.relationName());
    boolean [] connectPoints =
View Full Code Here

Examples of weka.core.Instances.relationName()

    vmc.setLog(m_Log);
    vmc.setName(result.relationName()+". (Class value "+
          classAtt.value(classValue)+")");
    PlotData2D tempd = new PlotData2D(result);
    tempd.m_displayAllPoints = true;
    tempd.setPlotName(result.relationName());
    boolean [] connectPoints =
      new boolean [result.numInstances()];
    for (int jj = 1; jj < connectPoints.length; jj+=2) {
      connectPoints[jj] = true;
    }
View Full Code Here

Examples of weka.core.Instances.relationName()

    String [] o = ((OptionHandler) classifier).getOptions();
    outBuff.append(" " + Utils.joinOptions(o));
  }
  outBuff.append("\n");
  if (trainHeader != null) {
    outBuff.append("Relation:     " + trainHeader.relationName() + '\n');
    outBuff.append("Attributes:   " + trainHeader.numAttributes() + '\n');
    if (trainHeader.numAttributes() < 100) {
      for (int i = 0; i < trainHeader.numAttributes(); i++) {
        outBuff.append("              " + trainHeader.attribute(i).name()
           + '\n');
View Full Code Here

Examples of weka.core.Instances.relationName()

        if (lagOptions.length() > 0) {
          outBuff.append("Lagged and derived variable options:\n\t").
          append(lagOptions + "\n\n");
        }

        outBuff.append("Relation:     " + inst.relationName() + '\n');
        outBuff.append("Instances:    " + inst.numInstances() + '\n');
        outBuff.append("Attributes:   " + inst.numAttributes() + '\n');
        if (inst.numAttributes() < 100) {
          for (int i = 0; i < inst.numAttributes(); i++) {
            outBuff.append("              " + inst.attribute(i).name()
View Full Code Here

Examples of weka.core.Instances.relationName()

      StringBuffer query = new StringBuffer();
      Instances structure = getInstances();
      query.append("CREATE TABLE ");
      m_resolvedTableName = m_env.substitute(m_tableName);
      if(m_tabName || m_resolvedTableName.equals(""))
        m_resolvedTableName = m_DataBaseConnection.maskKeyword(structure.relationName());
      if(m_DataBaseConnection.getUpperCase()){
        m_resolvedTableName = m_resolvedTableName.toUpperCase();
        m_createInt = m_createInt.toUpperCase();
        m_createDouble = m_createDouble.toUpperCase();
        m_createText = m_createText.toUpperCase();
View Full Code Here

Examples of weka.core.Instances.relationName()

  public void evaluateAttributesFromFile(String corpusName,
      String featureSetName, String splitName, String file)
      throws Exception {
    DataSource ds = new DataSource(file);
    Instances inst = ds.getDataSet();
    String label = FileUtil.parseLabelFromFileName(inst.relationName());
    Integer run = FileUtil.parseRunFromFileName(inst.relationName());
    Integer fold = FileUtil.parseFoldFromFileName(inst.relationName());
    evaluateAttributes(corpusName, featureSetName, splitName, inst, label,
        run, fold);
  }
View Full Code Here

Examples of weka.core.Instances.relationName()

      String featureSetName, String splitName, String file)
      throws Exception {
    DataSource ds = new DataSource(file);
    Instances inst = ds.getDataSet();
    String label = FileUtil.parseLabelFromFileName(inst.relationName());
    Integer run = FileUtil.parseRunFromFileName(inst.relationName());
    Integer fold = FileUtil.parseFoldFromFileName(inst.relationName());
    evaluateAttributes(corpusName, featureSetName, splitName, inst, label,
        run, fold);
  }
View Full Code Here

Examples of weka.core.Instances.relationName()

      throws Exception {
    DataSource ds = new DataSource(file);
    Instances inst = ds.getDataSet();
    String label = FileUtil.parseLabelFromFileName(inst.relationName());
    Integer run = FileUtil.parseRunFromFileName(inst.relationName());
    Integer fold = FileUtil.parseFoldFromFileName(inst.relationName());
    evaluateAttributes(corpusName, featureSetName, splitName, inst, label,
        run, fold);
  }

  /*
 
View Full Code Here

Examples of weka.core.Instances.relationName()

      Instances inst = new Instances(r);
      final javax.swing.JFrame jf = new javax.swing.JFrame();
      jf.getContentPane().setLayout(new java.awt.BorderLayout());
      final ModelPerformanceChart as = new ModelPerformanceChart();
      PlotData2D pd = new PlotData2D(inst);
      pd.setPlotName(inst.relationName());
      ThresholdDataEvent roc = new ThresholdDataEvent(as, pd);
      as.acceptDataSet(roc);     

      jf.getContentPane().add(as, java.awt.BorderLayout.CENTER);
      jf.addWindowListener(new java.awt.event.WindowAdapter() {
View Full Code Here

Examples of weka.core.Instances.relationName()

        new java.io.FileReader(selected));
  Instances i = new Instances(r);
  setInstances(i);
 
  //dataFileLabel.setText(selected.getName());
  String relationName = i.relationName();
  String truncatedN = relationName;
  if (relationName.length() > 25) {
    truncatedN = relationName.substring(0, 25) + "...";
  }
  dataFileLabel.setText(truncatedN);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.