Class ExamplesSet

java.lang.Object
  extended by ExamplesSet
All Implemented Interfaces:
java.io.Serializable
public class ExamplesSet
extends java.lang.Object
implements java.io.Serializable

Class for describing a set of examples (.names or .data file)

Version:
1.0
Author:
Fabien Torre
See Also:
Serialized Form

Constructor Summary
ExamplesSet(ProblemDescription pb, java.lang.String pbPath, java.lang.String extension, java.lang.Boolean verbose)
          Construction from a .date or .test file.
 
Method Summary
 java.lang.String getDataType()
           
 Example getExample(int index)
           
 java.util.Iterator getExamplesIterator()
           
 int getNumberOfExamples()
           
 float getRandomContinuousValue(int attributeId)
           
 void setIsoClassesWeights()
           
 void setIsoExamplesWeights()
           
 void sortExamplesByAttribute(int aId)
           
 java.lang.String toString()
          Transforms ExamplesSet to String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExamplesSet

public ExamplesSet(ProblemDescription pb,
                   java.lang.String pbPath,
                   java.lang.String extension,
                   java.lang.Boolean verbose)
Construction from a .date or .test file.

Parameters:
pb - description of the learning problem.
Method Detail

setIsoExamplesWeights

public void setIsoExamplesWeights()

setIsoClassesWeights

public void setIsoClassesWeights()

getNumberOfExamples

public int getNumberOfExamples()

getExample

public Example getExample(int index)

getExamplesIterator

public java.util.Iterator getExamplesIterator()

getDataType

public java.lang.String getDataType()

getRandomContinuousValue

public float getRandomContinuousValue(int attributeId)

sortExamplesByAttribute

public void sortExamplesByAttribute(int aId)

toString

public java.lang.String toString()
Transforms ExamplesSet to String.

Overrides:
toString in class java.lang.Object