public class MSPClassifier extends GenDisMixClassifier
AbstractScoreBasedClassifier.DoubleTableResultbeta, function, priorhasBeenOptimized, NOT_TRAINED_VALUE, params, score, sostream, template| Constructor and Description |
|---|
MSPClassifier(GenDisMixClassifierParameterSet params,
DifferentiableSequenceScore... score)
This convenience constructor creates an
MSPClassifier that used MCL principle for training. |
MSPClassifier(GenDisMixClassifierParameterSet params,
LogPrior prior,
DifferentiableSequenceScore... score)
The default constructor that creates a new
MSPClassifier from a
given parameter set, a prior and DifferentiableSequenceScores for the
classes. |
MSPClassifier(GenDisMixClassifierParameterSet params,
LogPrior prior,
double lastScore,
DifferentiableSequenceScore... score)
This constructor that creates a new
MSPClassifier from a
given parameter set, a prior and DifferentiableSequenceScores for the
classes. |
MSPClassifier(StringBuffer xml)
This is the constructor for
Storable. |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstanceName()
Returns a short description of the classifier.
|
protected String |
getXMLTag()
Returns the
String that is used as tag for the XML representation
of the classifier. |
clone, create, extractFurtherClassifierInfosFromXML, getFunction, getFurtherClassifierInfos, getNumberOfThreads, setNumberOfThreads, setPrior, setWeights, toStringcreateStructure, createStructure, doOptimization, getClassifierAnnotation, getCurrentParameterSet, getDifferentiableSequenceScore, getDifferentiableSequenceScores, getIterations, getLastScore, getNumericalCharacteristics, getScore, hasBeenOptimized, initUsingParameters, isInitialized, preoptimize, setOutputStream, traincheck, check, classify, classify, createDefaultClassWeights, getClassWeight, getClassWeights, getMultiClassScores, getNumberOfClasses, getPValue, getPValue, getResults, getScore, getScores, setClassWeights, setClassWeights, setThresholdClassWeightsclassify, evaluate, evaluate, getAlphabetContainer, getCharacteristics, getLength, toXML, trainpublic MSPClassifier(GenDisMixClassifierParameterSet params, DifferentiableSequenceScore... score) throws CloneNotSupportedException
MSPClassifier that used MCL principle for training.params - the parameter set for the classifierscore - the DifferentiableSequenceScores for the classesCloneNotSupportedException - if at least one DifferentiableSequenceScore could not be clonedDoesNothingLogPrior,
MSPClassifier(GenDisMixClassifierParameterSet, LogPrior, DifferentiableSequenceScore...)public MSPClassifier(GenDisMixClassifierParameterSet params, LogPrior prior, DifferentiableSequenceScore... score) throws CloneNotSupportedException
MSPClassifier from a
given parameter set, a prior and DifferentiableSequenceScores for the
classes.params - the parameter set for the classifierprior - the prior that shall be used; the learning principle depends on the prior: if the prior is null or DoesNothingLogPrior then MCL is used otherwise MSPscore - the DifferentiableSequenceScores for the classesCloneNotSupportedException - if at least one DifferentiableSequenceScore could not be clonedMSPClassifier(GenDisMixClassifierParameterSet, LogPrior, double, DifferentiableSequenceScore...),
ScoreClassifier.NOT_TRAINED_VALUE,
GenDisMixClassifier.setPrior(LogPrior)public MSPClassifier(GenDisMixClassifierParameterSet params, LogPrior prior, double lastScore, DifferentiableSequenceScore... score) throws CloneNotSupportedException
MSPClassifier from a
given parameter set, a prior and DifferentiableSequenceScores for the
classes. Additionally, the value lastScore can be set to determine the return value of
ScoreClassifier.getLastScore(). This might be useful if the parameters of the classifier are
determined by an external procedure.params - the parameter set for the classifierprior - the prior that shall be used; the learning principle depends on the prior: if the prior is null or DoesNothingLogPrior then MCL is used otherwise MSPlastScore - the score of the last optimizationscore - the DifferentiableSequenceScores for the classesCloneNotSupportedException - if at least one DifferentiableSequenceScore could not be clonedGenDisMixClassifier.GenDisMixClassifier(GenDisMixClassifierParameterSet, LogPrior, LearningPrinciple, de.jstacs.sequenceScores.statisticalModels.differentiable.DifferentiableStatisticalModel...),
LearningPrinciple.MSP,
GenDisMixClassifier.setPrior(LogPrior)public MSPClassifier(StringBuffer xml) throws NonParsableException
Storable.xml - the xml representationNonParsableException - if the representation could not be parsed.protected String getXMLTag()
AbstractClassifierString that is used as tag for the XML representation
of the classifier. This method is used by the methods
AbstractClassifier.fromXML(StringBuffer) and AbstractClassifier.toXML().getXMLTag in class GenDisMixClassifierString that is used as tag for the XML representation
of the classifierpublic String getInstanceName()
AbstractClassifiergetInstanceName in class GenDisMixClassifier