org.knowceans.dirichlet.lda
Class ExtLdaConfiguration
java.lang.Object
org.knowceans.dirichlet.lda.LdaConfiguration
org.knowceans.dirichlet.lda.ExtLdaConfiguration
- All Implemented Interfaces:
- java.io.Serializable
public class ExtLdaConfiguration
- extends LdaConfiguration
ExtLdaConfiguration extends the standard lda configuration by output
parameters.
- Author:
- gregor
- See Also:
- Serialized Form
Method Summary |
protected void |
configureOutput(java.lang.String corpusname,
java.lang.String outfilename,
int backupInterval,
int[] interSamples,
boolean interSave,
boolean interTopics)
configure the sampler output |
boolean |
isForQuery()
Check if the configuration is a query configuration. |
ExtLdaConfiguration |
setForQuery(boolean forQuery)
Reread the configuration for querying a given model and return this, so
this setting can be appended to a constructor call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
HYPER_APRIORI
public static final int HYPER_APRIORI
- See Also:
- Constant Field Values
HYPER_SAMPLE
public static final int HYPER_SAMPLE
- See Also:
- Constant Field Values
HYPER_ESTIMATE
public static final int HYPER_ESTIMATE
- See Also:
- Constant Field Values
hyperMethod
public int hyperMethod
backupInterval
public int backupInterval
interSamples
public int[] interSamples
corpusbase
public java.lang.String corpusbase
outfilebase
public java.lang.String outfilebase
interSave
public boolean interSave
interTopics
public boolean interTopics
forQuery
public boolean forQuery
doNative
public boolean doNative
ExtLdaConfiguration
public ExtLdaConfiguration()
ExtLdaConfiguration
public ExtLdaConfiguration(int iterations,
int burnIn,
int thinInterval,
int sampleLag,
int K,
double alpha,
double beta)
- Parameters:
iterations
- burnIn
- thinInterval
- sampleLag
- K
- alpha
- beta
-
ExtLdaConfiguration
public ExtLdaConfiguration(LdaMarkovState mcmc)
- Create a configuration that is consistent with the markov state.
(Currently only the topic number).
- Parameters:
mcmc
-
configureOutput
protected void configureOutput(java.lang.String corpusname,
java.lang.String outfilename,
int backupInterval,
int[] interSamples,
boolean interSave,
boolean interTopics)
- configure the sampler output
- Parameters:
corpusname
- outfilename
- backupInterval
- interSamples
- interSave
- interTopics
-
isForQuery
public final boolean isForQuery()
- Check if the configuration is a query configuration.
- Returns:
setForQuery
public final ExtLdaConfiguration setForQuery(boolean forQuery)
- Reread the configuration for querying a given model and return this, so
this setting can be appended to a constructor call.
- Parameters:
forQuery
-