Package weka.core

Examples of weka.core.Instances.relationName()


      substring(titleString.lastIndexOf('.') + 1,
                titleString.length());

    String prefix = "";
    String relationName = (m_includeRelationName)
    ? trainHeader.relationName()
    : "";
    try {
      prefix = m_env.substitute(m_filenamePrefix);
    } catch (Exception ex) {
      stop(); // stop all processing
View Full Code Here


        substring(titleString.lastIndexOf('.') + 1,
                  titleString.length());

      String prefix = "";
      String relationName = (m_includeRelationName)
        ? header.relationName()
        : "";
       
      try {
        prefix = m_env.substitute(m_filenamePrefix);
      } catch (Exception ex) {
View Full Code Here

      substring(titleString.lastIndexOf('.') + 1,
                titleString.length());

    String prefix = "";
    String relationName = (m_includeRelationName)
    ? trainHeader.relationName()
    : "";
    try {
      prefix = m_env.substitute(m_filenamePrefix);
    } catch (Exception ex) {
      stop(); // stop processing
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 ex) {
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

      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

    }
    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

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.