|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.classifier.assessment.ClassifierAssessmentAssessParameterSet
de.jstacs.classifier.assessment.Sampled_RepeatedHoldOutAssessParameterSet
public class Sampled_RepeatedHoldOutAssessParameterSet
This class implements a ClassifierAssessmentAssessParameterSet that
must be used to call method assess( ... ) of a
Sampled_RepeatedHoldOutExperiment. It contains user specific
parameters necessary for a run of a Sampled_RepeatedHoldOutExperiment.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
Sampled_RepeatedHoldOutAssessParameterSet()
Constructs a new Sampled_RepeatedHoldOutAssessParameterSet with
empty parameter values. |
|
Sampled_RepeatedHoldOutAssessParameterSet(Sample.PartitionMethod dataSplitMethod,
int elementLength,
boolean exceptionIfMPNotComputable,
int repeats,
int referenceClass,
double percentage,
boolean sameLength)
Constructs a new Sampled_RepeatedHoldOutAssessParameterSet with
given parameter values. |
|
Sampled_RepeatedHoldOutAssessParameterSet(StringBuffer representation)
Constructs a Sampled_RepeatedHoldOutAssessParameterSet out of an
XML representation. |
|
| Method Summary | |
|---|---|
Collection<Result> |
getAnnotation()
Returns a collection of parameters containing informations about this ClassifierAssessmentAssessParameterSet. |
Sample.PartitionMethod |
getDataSplitMethod()
Returns the Sample.PartitionMethod defining how the mutually exclusive
random-splits of user supplied data are generated. |
double |
getPercent()
Returns the percentage of user supplied data that is used in each iteration as test dataset. |
int |
getReferenceClass()
Returns the index of the reference class. |
int |
getRepeats()
Returns the repeats defined by this Sampled_RepeatedHoldOutAssessParameterSet (repeats defines how
many iterations (train and test classifiers) of that
Sampled_RepeatedHoldOutExperiment this
Sampled_RepeatedHoldOutAssessParameterSet is used with are
performed). |
protected void |
initializeMyParametersArrayList()
Initializes the list of Parameters in this
ClassifierAssessmentAssessParameterSet. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
boolean |
sameLength()
Returns true if for test respectively train dataset the
sequences of the non-reference classes have the same length as the
corresponding sequence of the reference class. |
| Methods inherited from class de.jstacs.classifier.assessment.ClassifierAssessmentAssessParameterSet |
|---|
getElementLength, getExceptionIfMPNotComputable |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
clone, fromXML, getErrorMessage, getId, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, toXML, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sampled_RepeatedHoldOutAssessParameterSet()
throws UnsupportedOperationException
Sampled_RepeatedHoldOutAssessParameterSet with
empty parameter values. This constructor should only be used to create
"filled" Sampled_RepeatedHoldOutAssessParameterSets,
i.e. to create Sampled_RepeatedHoldOutAssessParameterSets from a
set of values and not to fill it from the platform user-interface.
UnsupportedOperationException - if the Sampled_RepeatedHoldOutAssessParameterSet
could not be constructed or the parameters could not be
loadedClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet()
public Sampled_RepeatedHoldOutAssessParameterSet(StringBuffer representation)
throws NonParsableException
Sampled_RepeatedHoldOutAssessParameterSet out of an
XML representation.
representation - the XML representation
NonParsableException - if the Sampled_RepeatedHoldOutAssessParameterSet
could not be reconstructed out of the XML representationClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet(StringBuffer)
public Sampled_RepeatedHoldOutAssessParameterSet(Sample.PartitionMethod dataSplitMethod,
int elementLength,
boolean exceptionIfMPNotComputable,
int repeats,
int referenceClass,
double percentage,
boolean sameLength)
throws SimpleParameter.IllegalValueException
Sampled_RepeatedHoldOutAssessParameterSet with
given parameter values.
dataSplitMethod - defines the method used to split user supplied data into
k mutually exclusive random-splits (available
options are:
Sample.PartitionMethod.PARTITION_BY_NUMBER_OF_ELEMENTS and
Sample.PartitionMethod.PARTITION_BY_NUMBER_OF_SYMBOLS)elementLength - defines the length of elements (sequences) the classifiers to
be assessed are able to classifyexceptionIfMPNotComputable - a Sampled_RepeatedHoldOutAssessParameterSet is used in
combination with an MeasureParameters-object to call
assess( ... )-methods of
Sampled_RepeatedHoldOutExperiments. If
exceptionIfMPNotComputable=true then an exception
is thrown in case of a user selected measure parameters that
could not be computed.repeats - the number of repeats of each iteration (mutually exclusive,
randomly split data to obtain test and train datasets, train
classifiers using train datasets and test them using test
datasets) of that RepeatedHoldOutExperiment this
Sampled_RepeatedHoldOutAssessParameterSet is used withreferenceClass - the index of the class for which the complete data set is used,
typically this should be the smallest data set (to meet all constraints)percentage - the percentage of the referenceClass-data that
should be used as test data in each iterationsameLength - if true then for test respectively train dataset
the sequences of the non-reference classes have the same
length as the corresponding sequence of the reference class
SimpleParameter.IllegalValueException - is thrown in case of out-of-range or invalid given parametersSample| Method Detail |
|---|
protected void initializeMyParametersArrayList()
ClassifierAssessmentAssessParameterSetParameters in this
ClassifierAssessmentAssessParameterSet.
initializeMyParametersArrayList in class ClassifierAssessmentAssessParameterSetParameterSet.initParameterList(int initCapacity)
protected void loadParameters()
throws Exception
ParameterSetParameterSet. This is in
most cases done by calling ParameterSet.initParameterList() or ParameterSet.initParameterList(int)
to initialize ParameterSet.parameters and afterwards filling ParameterSet.parameters with instances of subclasses of Parameter.
loadParameters in class ClassifierAssessmentAssessParameterSetException - an Exception is thrown if the parameters could not be loadedParameterSet.parameters,
Parameterpublic int getRepeats()
Sampled_RepeatedHoldOutAssessParameterSet (repeats defines how
many iterations (train and test classifiers) of that
Sampled_RepeatedHoldOutExperiment this
Sampled_RepeatedHoldOutAssessParameterSet is used with are
performed).
Sampled_RepeatedHoldOutAssessParameterSet (repeats
defines how many iterations (train and test classifiers) of that
Sampled_RepeatedHoldOutExperiment this
Sampled_RepeatedHoldOutAssessParameterSet is used with
are performed)public int getReferenceClass()
public double getPercent()
public Sample.PartitionMethod getDataSplitMethod()
Sample.PartitionMethod defining how the mutually exclusive
random-splits of user supplied data are generated.
Sample.PartitionMethod defining how the mutually exclusive
random-splits of user supplied data are generatedSamplepublic boolean sameLength()
true if for test respectively train dataset the
sequences of the non-reference classes have the same length as the
corresponding sequence of the reference class.
true if for test respectively train data set
the sequences of the non-reference classes have the same length
as the corresponding sequence of the reference classpublic Collection<Result> getAnnotation()
ClassifierAssessmentAssessParameterSetClassifierAssessmentAssessParameterSet.
getAnnotation in class ClassifierAssessmentAssessParameterSetClassifierAssessmentAssessParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||