Package com.rapidminer.example.table

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


        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

               
                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

              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

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.