Package weka.core

Examples of weka.core.Instances.relationName()


  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(Messages.getInstance().getString("ThresholdVisualizePanel_OpenVisibleInstances_Text_Third") +
    Utils.doubleToString(ThresholdCurve.getROCArea(result), 4) + Messages.getInstance().getString("ThresholdVisualizePanel_OpenVisibleInstances_Text_Fourth"));
      if (compute)    
  vmc.setName(
      result.relationName()
      + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Twelveth") + inst.classAttribute().value(valueIndex.getIndex()) + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Thirteenth"));
      else
  vmc.setName(
      result.relationName()
      + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Fourteenth"));
View Full Code Here

  vmc.setName(
      result.relationName()
      + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Twelveth") + inst.classAttribute().value(valueIndex.getIndex()) + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Thirteenth"));
      else
  vmc.setName(
      result.relationName()
      + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Fourteenth"));
      PlotData2D tempd = new PlotData2D(result);
      tempd.setPlotName(result.relationName());
      tempd.addInstanceNumberAttribute();
      vmc.addPlot(tempd);
View Full Code Here

      else
  vmc.setName(
      result.relationName()
      + Messages.getInstance().getString("ThresholdVisualizePanel_Main_Text_Fourteenth"));
      PlotData2D tempd = new PlotData2D(result);
      tempd.setPlotName(result.relationName());
      tempd.addInstanceNumberAttribute();
      vmc.addPlot(tempd);
     
      String plotName = vmc.getName();
      final JFrame jf = new JFrame(Messages.getInstance().getString("ThresholdVisualizePanel_Main_JFrame_Text") + plotName);
View Full Code Here

      inst.setClassIndex(inst.numAttributes() - 1);
   
    // get some data
    props = new Vector();
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Filename_Text") + panel.getFilename());
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Filename_Text") + inst.relationName());
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Instances_Text") + inst.numInstances());
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Attributes_Text") + inst.numAttributes());
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_ClassAttribute_Text") + inst.classAttribute().name());
    props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_ClassLabels_Text") + inst.numClasses());
   
View Full Code Here

 
      StringBuffer query = new StringBuffer();
      Instances structure = getInstances();
      query.append("CREATE TABLE ");
      if(m_tabName || m_tableName.equals(""))
        m_tableName = m_DataBaseConnection.maskKeyword(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

          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

 
  private void prepareStructure() throws Exception {
    logger.debug("IN");
    Instances structure = getInstances();
    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

      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

  }
  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.