public abstract class AbstractParsimoniousModel extends AbstractVariableStructureModel
Modifier and Type | Field and Description |
---|---|
protected boolean |
inSamplingMode |
protected ParsimoniousElement.LearningMethod |
learningMethod |
protected java.lang.String[] |
parameterSamples |
protected boolean |
trained |
protected ParsimoniousElement[] |
tree |
protected ParsimoniousElement.ModelType |
usedModelType |
protected ParsimoniousElement.ParameterEstimate |
usedParameterEstimate |
protected ParsimoniousElement.StructureScore |
usedStructureScore |
numberOfSamples, reader, sampleFilePath, writer
Constructor and Description |
---|
AbstractParsimoniousModel(de.jstacs.data.AlphabetContainer alphabets,
int length) |
AbstractParsimoniousModel(java.lang.StringBuffer sb) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGraphViz() |
ParsimoniousElement.LearningMethod |
getLearningMethod() |
java.lang.String |
getSparseParameterRepresentation() |
java.lang.String |
getTreeStructures() |
void |
initForSampling(java.lang.String s) |
boolean |
isInitialized() |
void |
parse(java.lang.String str) |
void |
samplingStopped() |
void |
saveCurrentParametersToFile() |
void |
setModelType(ParsimoniousElement.ModelType mt) |
void |
setParameterEstimate(ParsimoniousElement.ParameterEstimate parameterEstimate) |
void |
setStructureScore(ParsimoniousElement.StructureScore structureScore) |
clone, drawParameters, getLogScoreOfCurrentStructure
check, emitDataSet, fromXML, getAlphabetContainer, getCharacteristics, getLength, getLogProbFor, getLogProbFor, getLogScoreFor, getLogScoreFor, getLogScoreFor, getLogScoreFor, getLogScoreFor, getMaximalMarkovOrder, toString, train
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
train
getLogPriorTerm, getLogProbFor
protected ParsimoniousElement[] tree
protected ParsimoniousElement.ModelType usedModelType
protected ParsimoniousElement.StructureScore usedStructureScore
protected ParsimoniousElement.ParameterEstimate usedParameterEstimate
protected ParsimoniousElement.LearningMethod learningMethod
protected boolean inSamplingMode
protected boolean trained
protected java.lang.String[] parameterSamples
public AbstractParsimoniousModel(de.jstacs.data.AlphabetContainer alphabets, int length)
public AbstractParsimoniousModel(java.lang.StringBuffer sb) throws de.jstacs.io.NonParsableException
de.jstacs.io.NonParsableException
public void setStructureScore(ParsimoniousElement.StructureScore structureScore)
public void setParameterEstimate(ParsimoniousElement.ParameterEstimate parameterEstimate)
public void setModelType(ParsimoniousElement.ModelType mt)
public java.lang.String getGraphViz()
public java.lang.String getTreeStructures()
public java.lang.String getSparseParameterRepresentation()
getSparseParameterRepresentation
in class AbstractVariableStructureModel
public void initForSampling(java.lang.String s) throws java.io.IOException
initForSampling
in class AbstractVariableStructureModel
java.io.IOException
public void saveCurrentParametersToFile() throws java.io.IOException
saveCurrentParametersToFile
in class AbstractVariableStructureModel
java.io.IOException
public void samplingStopped() throws java.io.IOException
samplingStopped
in class AbstractVariableStructureModel
java.io.IOException
public ParsimoniousElement.LearningMethod getLearningMethod()
public void parse(java.lang.String str)
parse
in class AbstractVariableStructureModel
public boolean isInitialized()