Package weka.core

Examples of weka.core.Instances.relationName()


  ThresholdVisualizePanel vmc = new ThresholdVisualizePanel();
  vmc.setROCString("(Area under ROC = " +
      Utils.doubleToString(ThresholdCurve.getROCArea(result), 4) + ")");
  vmc.setName(result.relationName());
  PlotData2D tempd = new PlotData2D(result);
  tempd.setPlotName(result.relationName());
  tempd.addInstanceNumberAttribute();
  try {
    vmc.addPlot(tempd);
  }
  catch (Exception ex) {
View Full Code Here


    }
    result.setClassIndex(result.numAttributes() - 1);
    ThresholdVisualizePanel vmc = new ThresholdVisualizePanel();
    vmc.setROCString("(Area under ROC = " +
        Utils.doubleToString(ThresholdCurve.getROCArea(result), 4) + ")");
    vmc.setName(result.relationName());
    PlotData2D tempd = new PlotData2D(result);
    tempd.setPlotName(result.relationName());
    tempd.addInstanceNumberAttribute();
    try {
      vmc.addPlot(tempd);
View Full Code Here

    ThresholdVisualizePanel vmc = new ThresholdVisualizePanel();
    vmc.setROCString("(Area under ROC = " +
        Utils.doubleToString(ThresholdCurve.getROCArea(result), 4) + ")");
    vmc.setName(result.relationName());
    PlotData2D tempd = new PlotData2D(result);
    tempd.setPlotName(result.relationName());
    tempd.addInstanceNumberAttribute();
    try {
      vmc.addPlot(tempd);
    }
    catch (Exception e) {
View Full Code Here

          titleString = titleString.
      substring(titleString.lastIndexOf('.') + 1,
          titleString.length());
          modelString = "=== Associator model ===\n\n" +
      "Scheme:   " +titleString+"\n" +
      "Relation: "  + trainingData.relationName() +
                        "\n\n"
      + modelString;
          titleString = "Model: " + titleString;

          TextEvent nt = new TextEvent(Associator.this,
View Full Code Here

  PlotData2D tmp = new PlotData2D(i);
  if (j != 1) {
    tmp.m_useCustomColour = true;
    tmp.m_customColour = Color.red;
  }
  tmp.setPlotName(i.relationName());
  plotList.addElement(tmp);
      }
     
      p2.setPlotList(plotList);
      jf.setVisible(true);
View Full Code Here

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

      ThresholdVisualizePanel vmc = new ThresholdVisualizePanel();
      vmc.setROCString("(Area under ROC = " +
    Utils.doubleToString(ThresholdCurve.getROCArea(result), 4) + ")");
      if (compute)    
  vmc.setName(
      result.relationName()
      + ". (Class value " + inst.classAttribute().value(valueIndex.getIndex()) + ")");
      else
  vmc.setName(
      result.relationName()
      + " (display only)");
View Full Code Here

  vmc.setName(
      result.relationName()
      + ". (Class value " + inst.classAttribute().value(valueIndex.getIndex()) + ")");
      else
  vmc.setName(
      result.relationName()
      + " (display only)");
      PlotData2D tempd = new PlotData2D(result);
      tempd.setPlotName(result.relationName());
      tempd.addInstanceNumberAttribute();
      vmc.addPlot(tempd);
View Full Code Here

      else
  vmc.setName(
      result.relationName()
      + " (display only)");
      PlotData2D tempd = new PlotData2D(result);
      tempd.setPlotName(result.relationName());
      tempd.addInstanceNumberAttribute();
      vmc.addPlot(tempd);
     
      String plotName = vmc.getName();
      final JFrame jf = new JFrame("Weka Classifier Visualize: "+plotName);
View Full Code Here

      if (search instanceof OptionHandler) {
        String [] o = ((OptionHandler) search).getOptions();
        outBuff.append(" " + Utils.joinOptions(o));
      }
      outBuff.append("\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

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.