Examples of addDataRow()


Examples of com.rapidminer.example.table.MemoryExampleTable.addDataRow()

              int minR=getParameterAsInt("Min Rating");
              int maxR=getParameterAsInt("Range")+minR;
              res=RatingEval.Evaluate(predicted,minR,maxR);
              double [] a1={res.get("RMSE"),res.get("MAE"),res.get("NMAE")};
              DoubleArrayDataRow row=new DoubleArrayDataRow(a1);
              a.addDataRow(row);
             
              PerformanceVector result1 = new PerformanceVector();
              EstimatedPerformance performance = new EstimatedPerformance("RMSE", a1[0],1,true);
              EstimatedPerformance performance1 = new EstimatedPerformance("MAE", a1[1],1,true);
              EstimatedPerformance performance2 = new EstimatedPerformance("NMAE", a1[2],1,true);
View Full Code Here

Examples of com.rapidminer.example.table.MemoryExampleTable.addDataRow()

        MemoryExampleTable memoryExampleTable = new MemoryExampleTable(attribute);

        for (Map.Entry<double[], String> entry : itemClassMap.entrySet()) {
            Double[] values = convertdoubleToDoubleArray(entry.getKey(), entry.getValue());
            DataRow rmRow = dataRowFactory.create(values, attribute);
            memoryExampleTable.addDataRow(rmRow);
        }

        ExampleSet newExampleSet = memoryExampleTable.createExampleSet();

        return newExampleSet;
View Full Code Here

Examples of com.rapidminer.example.table.MemoryExampleTable.addDataRow()

               
                for(int i2=0;i2<data1.size();i2++){
                    if(!s.contains(data1.get(i2).item_id)){
                      int[] dat={tr,model.item_mapping.ToOriginalID(data1.get(i2).item_id),cn+1};
                    IntArrayDataRow row=new IntArrayDataRow(dat);
                      a.addDataRow(row);
                      cn++;
                      if(cn==N)
                        break;
                    }
                }
View Full Code Here

Examples of com.rapidminer.example.table.MemoryExampleTable.addDataRow()

              MemoryExampleTable a=new MemoryExampleTable(attr);
             
             
              double [] a1={result.get("AUC"),result.get("prec@5"),result.get("prec@10"), result.get("prec@15"),result.get("NDCG"),result.get("MAP")};
              DoubleArrayDataRow row=new DoubleArrayDataRow(a1);
              a.addDataRow(row);
             
            PerformanceVector result1 = new PerformanceVector();
            EstimatedPerformance performance = new EstimatedPerformance("AUC", a1[0],1,false);
            EstimatedPerformance performance1 = new EstimatedPerformance("prec@5", a1[1],1,false);
            EstimatedPerformance performance2 = new EstimatedPerformance("prec@10", a1[2],1,false);
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

      } catch (Exception e) {
        dataRow.addValue(e.getMessage(), new Double(0));
      }

      //finally adding dataRow to DataTable and fetching next row
      dtbl.addDataRow(dataRow);
    }

    // a list of DataTables is expected as return Object, even if there is only one
    // Data Table as it is here in this implementation
    dtbl.setUnitLabel(Helper
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

    DataTable dtbl = new DataTable("");

    // if headerRow is set then add it to the DataTable to set columns
    // needs to be removed later
    if (headerRow != null) {
      dtbl.addDataRow(headerRow);
    }

    DataRow dataRow = null;

    // each data row comes out as an Array of Objects
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

            // row cannot be added before it is filled because the
            // add process triggers
            // a testing for header alignement -- this is where we
            // add it after iterating it first
            if (dataRow != null) {
              dtbl.addDataRow(dataRow);
            }

            // setting row name with localized time group and the
            // date/time extraction based on the group
            dataRow = new DataRow(intervall);
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

        }
      }
    }
    // to add also the last row
    if (dataRow != null) {
      dtbl.addDataRow(dataRow);
    }

    // now removing headerRow
    if (headerRow != null) {
      dtbl.removeDataRow(headerRow);
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

   *          selected reference curve
   */
  public DataTable getSelectedTable() {
    getDataTable();
    DataTable returnTable = new DataTable(this.terminatingStep);
    returnTable.addDataRow(getRefRow());
    for (String stepTitle : this.selectedSteps) {
      returnTable.addDataRow(getDataRow(stepTitle));
    }
    // rest this, so that unit knows that no changes were made in between
    // calls
View Full Code Here

Examples of de.intranda.commons.chart.results.DataTable.addDataRow()

  public DataTable getSelectedTable() {
    getDataTable();
    DataTable returnTable = new DataTable(this.terminatingStep);
    returnTable.addDataRow(getRefRow());
    for (String stepTitle : this.selectedSteps) {
      returnTable.addDataRow(getDataRow(stepTitle));
    }
    // rest this, so that unit knows that no changes were made in between
    // calls
    return returnTable;
  }
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.