Class LearningCurve

  • All Implemented Interfaces:
    Serializable, MOAObject

    public class LearningCurve
    extends Preview
    Class that stores and keeps the history of evaluation measurements.
    Version:
    $Revision: 7 $
    Author:
    Richard Kirkby (rkirkby@cs.waikato.ac.nz)
    See Also:
    Serialized Form
    • Field Detail

      • measurementNames

        protected List<String> measurementNames
      • measurementValues

        protected List<double[]> measurementValues
    • Constructor Detail

      • LearningCurve

        public LearningCurve​(String orderingMeasurementName)
      • LearningCurve

        public LearningCurve​(String orderingMeasurementName,
                             Class<?> taskClass)
    • Method Detail

      • getOrderingMeasurementName

        public String getOrderingMeasurementName()
      • setData

        public void setData​(List<String> measurementNames,
                            List<double[]> measurementValues)
      • addMeasurementName

        protected int addMeasurementName​(String name)
      • headerToString

        public String headerToString()
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent
      • getMeasurement

        public double getMeasurement​(int entryIndex,
                                     int measurementIndex)
      • getEntryMeasurementCount

        public int getEntryMeasurementCount​(int entryIdx)
      • getEntryData

        public double[] getEntryData​(int entryIndex)
        Specified by:
        getEntryData in class Preview