|
||||||||||
| 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.RepeatedSubSamplingAssessParameterSet
public class RepeatedSubSamplingAssessParameterSet
This class implements a ClassifierAssessmentAssessParameterSet that
must be used to call method assess( ... ) of a
RepeatedSubSamplingExperiment. It contains user specific parameters
necessary for a run of a RepeatedSubSamplingExperiment.
| 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 | |
|---|---|
|
RepeatedSubSamplingAssessParameterSet()
Constructs a new RepeatedSubSamplingAssessParameterSet with empty
parameter values. |
|
RepeatedSubSamplingAssessParameterSet(int elementLength,
boolean exceptionIfMPNotComputable,
int repeats,
int[] trainNumbers,
int[] testNumbers)
Constructs a new RepeatedSubSamplingAssessParameterSet with given
parameter values. |
protected |
RepeatedSubSamplingAssessParameterSet(StringBuffer representation)
The standard constructor for the interface Storable. |
| Method Summary | |
|---|---|
Collection<Result> |
getAnnotation()
Returns a Collection of parameters containing informations about
this ClassifierAssessmentAssessParameterSet. |
int |
getRepeats()
Returns the repeats defined by this RepeatedSubSamplingAssessParameterSet (repeats defines how many
iterations (train and test classifiers) of that
RepeatedSubSamplingExperiment this
RepeatedSubSamplingAssessParameterSet is used with are
performed). |
int[] |
getTrain_TestNumbers(boolean train_case)
Returns an array containing the number of elements the subsampled (train | test) datasets should consist of. |
protected void |
initializeMyParametersArrayList()
Initializes the list of Parameters 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 RepeatedSubSamplingAssessParameterSet()
throws UnsupportedOperationException
RepeatedSubSamplingAssessParameterSet with empty
parameter values. This constructor should only be used to create
"filled" RepeatedSubSamplingAssessParameterSets, i.e.
to create RepeatedSubSamplingAssessParameterSets from a set of
values and not to fill it from the platform user interface.
UnsupportedOperationException - if the RepeatedSubSamplingAssessParameterSet could
not be constructed or the parameters could not be loadedClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet()
protected RepeatedSubSamplingAssessParameterSet(StringBuffer representation)
throws NonParsableException
Storable.
Constructs a RepeatedSubSamplingAssessParameterSet out of its XML
representation.
representation - the XML representation as StringBuffer
NonParsableException - if the RepeatedSubSamplingAssessParameterSet could
not be reconstructed out of the XML representation (the
StringBuffer representation could not be
parsed)ClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet(StringBuffer)
public RepeatedSubSamplingAssessParameterSet(int elementLength,
boolean exceptionIfMPNotComputable,
int repeats,
int[] trainNumbers,
int[] testNumbers)
throws SimpleParameter.IllegalValueException
RepeatedSubSamplingAssessParameterSet with given
parameter values.
elementLength - defines the length of elements (sequences) the classifiers to
be assessed are able to classifyexceptionIfMPNotComputable - a RepeatedSubSamplingAssessParameterSet is used in
combination with a
MeasureParameters-object to call
assess( ... )-methods of
RepeatedSubSamplingExperiments. 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 (subsample test and
train datasets from user supplied data, train classifiers
using train datasets and test them using test datasets) of
that RepeatedHoldOutExperiment this
RepeatedSubSamplingAssessParameterSet is used withtrainNumbers - an array containing for each class (the classifiers to be
assessed are capable to distinguish) the number of elements
the subsampled train datasets should containtestNumbers - an array containing for each class (the classifiers to be
assessed are capable to distinguish) the number of elements
the subsampled test datasets should contain
SimpleParameter.IllegalValueException - in case of out-of-range or invalid given parametersClassifierAssessmentAssessParameterSet.ClassifierAssessmentAssessParameterSet(int,
boolean)| 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 - if the parameters could not be loadedParameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)public int getRepeats()
RepeatedSubSamplingAssessParameterSet (repeats defines how many
iterations (train and test classifiers) of that
RepeatedSubSamplingExperiment this
RepeatedSubSamplingAssessParameterSet is used with are
performed).
RepeatedSubSamplingAssessParameterSet (repeats defines
how many iterations (train and test classifiers) of that
RepeatedSubSamplingExperiment this
RepeatedSubSamplingAssessParameterSet is used with are
performed)public int[] getTrain_TestNumbers(boolean train_case)
train_case - if true then (train | test)=train
else (train | test)=test
public Collection<Result> getAnnotation()
ClassifierAssessmentAssessParameterSetCollection of parameters containing informations about
this ClassifierAssessmentAssessParameterSet.
getAnnotation in class ClassifierAssessmentAssessParameterSetCollection of parameters containing informations about
this ClassifierAssessmentAssessParameterSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||