|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.classifier.assessment.ClassifierAssessmentAssessParameterSet
de.jstacs.classifier.assessment.RepeatedHoldOutAssessParameterSet
public class RepeatedHoldOutAssessParameterSet
This class implements a ClassifierAssessmentAssessParameterSet
that
must be used to call method assess( ... )
of a
RepeatedHoldOutExperiment
. It contains user specific parameters
necessary for a run of a 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 | |
---|---|
RepeatedHoldOutAssessParameterSet()
Constructs a new RepeatedHoldOutAssessParameterSet with empty
parameter values. |
|
RepeatedHoldOutAssessParameterSet(Sample.PartitionMethod dataSplitMethod,
int elementLength,
boolean exceptionIfMPNotComputable,
int repeats,
double[] percents)
Constructs a new RepeatedHoldOutAssessParameterSet with given
parameter values. |
|
RepeatedHoldOutAssessParameterSet(StringBuffer representation)
The standard constructor for the interface Storable . |
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[] |
getPercents()
Returns an array containing for each class the percentage of user supplied data that is used in each iteration as test dataset. |
int |
getRepeats()
Returns the repeats defined by this RepeatedHoldOutAssessParameterSet (repeats define how many
iterations (train and test classifiers) of that
RepeatedHoldOutExperiment this
RepeatedHoldOutAssessParameterSet is used with are performed). |
protected void |
initializeMyParametersArrayList()
Initializes the list of Parameter s in this
ClassifierAssessmentAssessParameterSet . |
protected void |
loadParameters()
Loads the parameters for this ParameterSet . |
Methods inherited from class de.jstacs.classifier.assessment.ClassifierAssessmentAssessParameterSet |
---|
getElementLength, getExceptionIfMPNotComputable |
Methods inherited from class de.jstacs.parameters.ParameterSet |
---|
clone, fromGalaxy, fromXML, getErrorMessage, getId, getIndex, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, toGalaxy, toXML, valuesToString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepeatedHoldOutAssessParameterSet() throws UnsupportedOperationException
RepeatedHoldOutAssessParameterSet
with empty
parameter values. This constructor should only be used to create
"filled" RepeatedHoldOutAssessParameterSet
s, i.e. to
create RepeatedHoldOutAssessParameterSet
s from a set of values
and not to fill it from the platform user interface.
UnsupportedOperationException
- if the RepeatedHoldOutAssessParameterSet
could not be
constructed or the parameters could not be loadedClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet()
public RepeatedHoldOutAssessParameterSet(StringBuffer representation) throws NonParsableException
Storable
.
Constructs a RepeatedHoldOutAssessParameterSet
out of its XML
representation.
representation
- the XML representation as StringBuffer
NonParsableException
- if the RepeatedHoldOutAssessParameterSet
could not be
reconstructed out of the XML representation (the
StringBuffer
representation
could not be
parsed)ClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet(StringBuffer)
,
Storable
public RepeatedHoldOutAssessParameterSet(Sample.PartitionMethod dataSplitMethod, int elementLength, boolean exceptionIfMPNotComputable, int repeats, double[] percents) throws SimpleParameter.IllegalValueException
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 RepeatedHoldOutAssessParameterSet
is used in
combination with a
MeasureParameters
-object to call
assess( ... )
-methods of
RepeatedHoldOutExperiment
s. If
exceptionIfMPNotComputable==true
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
RepeatedHoldOutAssessParameterSet
is used withpercents
- this array contains class-wise the percentage of the user
supplied data that should be used as test data in each
iteration of that RepeatedHoldOutExperiment
this
RepeatedHoldOutAssessParameterSet
is used with
SimpleParameter.IllegalValueException
- in case of out-of-range or invalid given parametersClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet(int,
boolean)
,
Sample.PartitionMethod
Method Detail |
---|
protected void initializeMyParametersArrayList()
ClassifierAssessmentAssessParameterSet
Parameter
s in this
ClassifierAssessmentAssessParameterSet
.
initializeMyParametersArrayList
in class ClassifierAssessmentAssessParameterSet
ParameterSet.initParameterList(int initCapacity)
protected void loadParameters() throws Exception
ParameterSet
ParameterSet
. 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 ClassifierAssessmentAssessParameterSet
Exception
- if the parameters could not be loadedParameter
,
ParameterSet.parameters
,
ParameterSet.initParameterList()
,
ParameterSet.initParameterList(int)
public int getRepeats()
RepeatedHoldOutAssessParameterSet
(repeats define how many
iterations (train and test classifiers) of that
RepeatedHoldOutExperiment
this
RepeatedHoldOutAssessParameterSet
is used with are performed).
RepeatedHoldOutAssessParameterSet
(repeats define how
many iterations (train and test classifiers) of that
RepeatedHoldOutExperiment
this
RepeatedHoldOutAssessParameterSet
is used with are
performed)public double[] getPercents()
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 generatedSample.PartitionMethod
public Collection<Result> getAnnotation()
ClassifierAssessmentAssessParameterSet
Collection
of parameters containing informations about
this ClassifierAssessmentAssessParameterSet
.
getAnnotation
in class ClassifierAssessmentAssessParameterSet
Collection
of parameters containing informations about
this ClassifierAssessmentAssessParameterSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |