org.knowceans.dirichlet.lda
Class ExtLdaConfiguration

java.lang.Object
  extended by org.knowceans.dirichlet.lda.LdaConfiguration
      extended by 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

Field Summary
 int backupInterval
           
 java.lang.String corpusbase
           
 boolean doNative
           
 boolean forQuery
           
static int HYPER_APRIORI
           
static int HYPER_ESTIMATE
           
static int HYPER_SAMPLE
           
 int hyperMethod
           
 int[] interSamples
           
 boolean interSave
           
 boolean interTopics
           
 java.lang.String outfilebase
           
private static long serialVersionUID
           
 
Fields inherited from class org.knowceans.dirichlet.lda.LdaConfiguration
alpha, beta, burnIn, iterations, K, sampleLag, thinInterval
 
Constructor Summary
ExtLdaConfiguration()
           
ExtLdaConfiguration(int iterations, int burnIn, int thinInterval, int sampleLag, int K, double alpha, double beta)
           
ExtLdaConfiguration(LdaMarkovState mcmc)
          Create a configuration that is consistent with the markov state.
 
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
 

Field Detail

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
Constructor Detail

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 -
Method Detail

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 -