Package moa.evaluation.preview
Class PreviewCollectionLearningCurveWrapper
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.evaluation.preview.Preview
-
- moa.evaluation.preview.PreviewCollectionLearningCurveWrapper
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class PreviewCollectionLearningCurveWrapper extends Preview
Class used to wrap LearningCurve so that it can be used in conjunction with a PreviewCollection- Version:
- $Revision: 1 $
- Author:
- Tuan Pham Minh (tuan.pham@ovgu.de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreviewCollectionLearningCurveWrapper(LearningCurve learningCurveToBeWrapped, Class<?> taskClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
entryToString(int entryIndex)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double[]
getEntryData(int entryIndex)
LearningCurve
getLearningCurve()
String
getMeasurementName(int measurementIndex)
int
getMeasurementNameCount()
Class<?>
getTaskClass()
int
numEntries()
-
Methods inherited from class moa.evaluation.preview.Preview
getData, getMeasurementNames
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Constructor Detail
-
PreviewCollectionLearningCurveWrapper
public PreviewCollectionLearningCurveWrapper(LearningCurve learningCurveToBeWrapped, Class<?> taskClass)
-
-
Method Detail
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
getMeasurementNameCount
public int getMeasurementNameCount()
- Specified by:
getMeasurementNameCount
in classPreview
-
getMeasurementName
public String getMeasurementName(int measurementIndex)
- Specified by:
getMeasurementName
in classPreview
-
numEntries
public int numEntries()
- Specified by:
numEntries
in classPreview
-
entryToString
public String entryToString(int entryIndex)
- Specified by:
entryToString
in classPreview
-
getLearningCurve
public LearningCurve getLearningCurve()
-
getTaskClass
public Class<?> getTaskClass()
- Specified by:
getTaskClass
in classPreview
-
getEntryData
public double[] getEntryData(int entryIndex)
- Specified by:
getEntryData
in classPreview
-
-