Package | Description |
---|---|
de.jstacs.classifiers.differentiableSequenceScoreBased.sampling |
Provides the classes for
AbstractScoreBasedClassifier s that are based on
SamplingDifferentiableStatisticalModel s
and that sample parameters using the Metropolis-Hastings algorithm. |
Modifier and Type | Method and Description |
---|---|
SamplingScoreBasedClassifier.SamplingScheme |
SamplingScoreBasedClassifierParameterSet.getSamplingScheme()
Returns the sampling scheme
|
static SamplingScoreBasedClassifier.SamplingScheme |
SamplingScoreBasedClassifier.SamplingScheme.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SamplingScoreBasedClassifier.SamplingScheme[] |
SamplingScoreBasedClassifier.SamplingScheme.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected double |
SamplingScoreBasedClassifier.doOneSamplingStep(Function function,
SamplingScoreBasedClassifier.SamplingScheme scheme,
double previousValue)
Performs one sampling step, i.e., one sampling of all parameter values.
|
protected double |
SamplingScoreBasedClassifier.sampleNSteps(Function function,
SamplingScoreBasedClassifier.DiffSMSamplingComponent component,
BurnInTest test,
int numSteps,
SamplingScoreBasedClassifier.SamplingScheme scheme)
Samples a predefined number of steps appended to the current sampling
|
Constructor and Description |
---|
SamplingGenDisMixClassifierParameterSet(AlphabetContainer alphabet,
int length,
int numStarts,
SamplingScoreBasedClassifier.SamplingScheme scheme,
int testSamplings,
int stationarySamplings,
boolean freeParameters,
boolean adaptVariance,
String outfilePrefix,
int threads)
Create a new
SamplingGenDisMixClassifierParameterSet . |
SamplingGenDisMixClassifierParameterSet(Class<? extends SamplingScoreBasedClassifier> instanceClass,
AlphabetContainer alphabet,
int length,
int numStarts,
SamplingScoreBasedClassifier.SamplingScheme scheme,
int testSamplings,
int stationarySamplings,
boolean freeParameters,
boolean adaptVariance,
String outfilePrefix,
int threads)
Create a new
SamplingGenDisMixClassifierParameterSet . |
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 . |