Ignore:
Timestamp:
06/28/16 12:01:39 (8 years ago)
Author:
sherbold
Message:
  • rather intrusive and large change to correctly evaluate AUCEC in case metrics are modified. The effort is now stored directly with a software version and it is the duty of the loader to specify the review effort for each instance. This required changes to the execution strategiey, data loading, and evaluation process.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/versions/SoftwareVersion.java

    r86 r132  
    1414 
    1515package de.ugoe.cs.cpdp.versions; 
     16 
     17import java.util.List; 
    1618 
    1719import weka.core.Instances; 
     
    3840     */ 
    3941    private final Instances instances; 
     42     
     43    /** 
     44     * Review effort per instance.  
     45     */ 
     46    private final List<Double> efforts; 
    4047 
    4148    /** 
     
    4956     *            data of the version 
    5057     */ 
    51     public SoftwareVersion(String project, String version, Instances instances) { 
     58    public SoftwareVersion(String project, String version, Instances instances, List<Double> efforts) { 
    5259        this.project = project; 
    5360        this.version = version; 
    5461        this.instances = instances; 
     62        this.efforts = efforts; 
    5563    } 
    56  
     64     
    5765    /** 
    5866     * returns the project name 
     
    8189        return new Instances(instances); 
    8290    } 
     91     
     92    /** 
     93     * <p> 
     94     * returns the review effort of the version 
     95     * </p> 
     96     * 
     97     * @return 
     98     */ 
     99    public List<Double> getEfforts() { 
     100        return efforts; 
     101    } 
    83102 
    84103    /** 
Note: See TracChangeset for help on using the changeset viewer.