Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PLSA Class Reference

#include <PLSA.hpp>

List of all members.

Public Methods

 PLSA (const Index &dbIndex, int numCats, HashFreqVector **train, HashFreqVector **validate, int numIter, int numRestarts, double betastart, double betastop, double anneal, double betaMod)
 building with provided train/test partitions

 PLSA (const Index &dbIndex, int testPercentage, int numCats, int numIter, int numRestarts, double betastart, double betastop, double anneal, double betaMod)
 building without provided train/test partitions

 PLSA (const Index &dbIndex)
 for using prebuilt tables.

virtual ~PLSA ()
void iterateWithRestarts ()
 Start things going.

double * get_p_z () const
double ** get_p_w_z () const
 P(w|z) matrix.

double ** get_p_d_z () const
 P(d|z) matrix.

double getProb (int d, int w) const
 P(d,w).

int numWords () const
 number of terms

int numDocs () const
 number of docs

int numCats () const
 number of categories

bool readArrays ()


Detailed Description

Probabilistic Latent Semantic Analysis Java Reference implementation from Andrew Schein and Alexandrin Popescul (Penn). PennAspect (GPL).


Constructor & Destructor Documentation

PLSA::PLSA const Index   dbIndex,
int    numCats,
HashFreqVector **    train,
HashFreqVector **    validate,
int    numIter,
int    numRestarts,
double    betastart,
double    betastop,
double    anneal,
double    betaMod
 

building with provided train/test partitions

PLSA::PLSA const Index   dbIndex,
int    testPercentage,
int    numCats,
int    numIter,
int    numRestarts,
double    betastart,
double    betastop,
double    anneal,
double    betaMod
 

building without provided train/test partitions

PLSA::PLSA const Index   dbIndex
 

for using prebuilt tables.

PLSA::~PLSA   [virtual]
 


Member Function Documentation

double** PLSA::get_p_d_z   const [inline]
 

P(d|z) matrix.

double** PLSA::get_p_w_z   const [inline]
 

P(w|z) matrix.

double* PLSA::get_p_z   const [inline]
 

get the final values P(z) vector

double PLSA::getProb int    d,
int    w
const
 

P(d,w).

void PLSA::iterateWithRestarts  
 

Start things going.

int PLSA::numCats   const [inline]
 

number of categories

int PLSA::numDocs   const [inline]
 

number of docs

int PLSA::numWords   const [inline]
 

number of terms

bool PLSA::readArrays  
 

should these be public? On ctor if not constructing.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:50 2004 for Lemur Toolkit by doxygen1.2.18