|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
de.jstacs.parameters.SequenceScoringParameterSet
de.jstacs.classifier.scoringFunctionBased.sampling.SamplingScoreBasedClassifierParameterSet
public abstract class SamplingScoreBasedClassifierParameterSet
ParameterSet to instantiate a SamplingScoreBasedClassifier.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
|---|
ParameterSet.ParameterList |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
alphabet, length |
| Fields inherited from class de.jstacs.parameters.ParameterSet |
|---|
errorMessage, parameters, parent, ranged |
| Constructor Summary | |
|---|---|
SamplingScoreBasedClassifierParameterSet(Class<? extends SamplingScoreBasedClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
int numStarts,
int testSamplings,
int stationarySamplings,
String outfilePrefix)
Create a new SamplingScoreBasedClassifierParameterSet with a grouped sampling scheme, sampling all parameters
(and not only the free ones), and adaption of the variance. |
|
SamplingScoreBasedClassifierParameterSet(Class<? extends SamplingScoreBasedClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
int numStarts,
SamplingScoreBasedClassifier.SamplingScheme scheme,
int testSamplings,
int stationarySamplings,
boolean freeParameters,
boolean adaptVariance,
String outfilePrefix)
Create a new SamplingScoreBasedClassifierParameterSet. |
|
| Method Summary | |
|---|---|
SamplingScoreBasedClassifierParameterSet |
clone()
Creates a full clone (deep copy) of this ParameterSet. |
boolean |
getAdaptVariance()
Returns true if the sampling variance shall be adapted to the size of the event space of a random variable |
boolean |
getFreeParameters()
Returns true if only free parameters shall be used |
int |
getNumberOfStarts()
Returns the number of independent sampling starts |
int |
getNumberOfStationarySamplings()
Returns the number of samplings steps in the stationary phase |
int |
getNumberOfTestSamplings()
Returns the number of samplings between checks for the stationary phase |
String |
getOutfilePrefix()
Returns the prefix of the temporary files for storing sampled parameter values |
SamplingScoreBasedClassifier.SamplingScheme |
getSamplingScheme()
Returns the sampling scheme |
protected void |
loadParameters()
Loads the parameters for this ParameterSet. |
void |
setNumberOfStarts(int i)
Sets the number of starts to i |
| Methods inherited from class de.jstacs.parameters.SequenceScoringParameterSet |
|---|
equals, fromXML, getAlphabetContainer, getLength, getNumberOfParameters, getParameterAt, hasDefaultOrIsSet, replaceParametersWithRangedInstance, reset, toXML |
| Methods inherited from class de.jstacs.parameters.InstanceParameterSet |
|---|
getInstance, getInstanceClass, getInstanceComment, getInstanceName |
| Methods inherited from class de.jstacs.parameters.ParameterSet |
|---|
fromGalaxy, getErrorMessage, getId, getIndex, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, resetToFirst, setParent, simplify, toGalaxy, valuesToString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SamplingScoreBasedClassifierParameterSet(Class<? extends SamplingScoreBasedClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
int numStarts,
SamplingScoreBasedClassifier.SamplingScheme scheme,
int testSamplings,
int stationarySamplings,
boolean freeParameters,
boolean adaptVariance,
String outfilePrefix)
throws Exception
SamplingScoreBasedClassifierParameterSet.
instanceClass - the class, which must be a subclass of SamplingScoreBasedClassifieralphabet - the alphabet of the classifierlength - the length of the sequences that can be classifiednumStarts - the number of independent samplingsscheme - the sampling schemetestSamplings - the number of samplings between checks for the lenght of the burn-in phasestationarySamplings - the number of samplings in the stationary phasefreeParameters - if only free parameters shall be usedadaptVariance - if the variance shall be adapted to the size of the event space of a random variableoutfilePrefix - the prefix of the temporary files for storing the parameters
Exception - if the parameters could not be createdSamplingScoreBasedClassifier
public SamplingScoreBasedClassifierParameterSet(Class<? extends SamplingScoreBasedClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
int numStarts,
int testSamplings,
int stationarySamplings,
String outfilePrefix)
throws Exception
SamplingScoreBasedClassifierParameterSet with a grouped sampling scheme, sampling all parameters
(and not only the free ones), and adaption of the variance.
instanceClass - the class, which must be a subclass of SamplingScoreBasedClassifieralphabet - the alphabet of the classifierlength - the length of the sequences that can be classifiednumStarts - the number of independent samplingstestSamplings - the number of samplings between checks for the lenght of the burn-in phasestationarySamplings - the number of samplings in the stationary phaseoutfilePrefix - the prefix of the temporary files for storing the parameters
Exception - if the parameters could not be createdSamplingScoreBasedClassifier| Method Detail |
|---|
public SamplingScoreBasedClassifierParameterSet clone()
throws CloneNotSupportedException
ParameterSetParameterSet. As a
convenience-method the user can use
fillWithStandardFieldsForClone(ParameterSet) on a newly
created instance of a subclass of ParameterSet to obtain a
clone/copy of all standard member variables (those already defined in
ParameterSet) in the passed ParameterSet. Using this
method, the cloning process becomes merely three-step:ParameterSet, most
likely with an empty constructor or the one taking just the instance
class.
this.fillWithStandardFieldsForClone on this
instance.
Object's method
Object.clone().
clone in class SequenceScoringParameterSetParameterSet
CloneNotSupportedException
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 ParameterSetException - if the parameters could not be loadedParameter,
ParameterSet.parameters,
ParameterSet.initParameterList(),
ParameterSet.initParameterList(int)public int getNumberOfStarts()
public SamplingScoreBasedClassifier.SamplingScheme getSamplingScheme()
public int getNumberOfTestSamplings()
public int getNumberOfStationarySamplings()
public boolean getFreeParameters()
true if only free parameters shall be used
public boolean getAdaptVariance()
SamplingScoreBasedClassifierpublic String getOutfilePrefix()
public void setNumberOfStarts(int i)
throws SimpleParameter.IllegalValueException
i
i - the new number of starts
SimpleParameter.IllegalValueException - if this value is not allowed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||