Table of Contents

Class: DiagEM compClust/mlx/wrapper/DiagEM.py
Base Classes   
ML_Algorithm.ML_Algorithm
Methods   
__execute
__init__
__removeDir
checkKStrict
copy
createClusteringCommandLine
createClusteringInputFile
createModel
getLabeling
getModel
getTransformedDataset
readDiagemOutput
run
validate
  __execute 
__execute ( self )

__execute(self)

Builds and executed the clustering algorithm

  __init__ 
__init__ (
        self,
        dataset=None,
        parameters=None,
        )

  __removeDir 
__removeDir ( self,  dir )

__removeDir(dir)

Removes all the files in a directory and the directory itself

  checkKStrict 
checkKStrict ( self,  labeling )

checkKStrict()

Ensured that the number of clusters returned by the algorithm actually matched the number we want. Return true if desired k is the returned k.

  copy 
copy ( self )

  createClusteringCommandLine 
createClusteringCommandLine ( self )

commandLine = createClusteringCommandLine()

Construct the command line needed to run the DIAGEM command on the current dataset.

  createClusteringInputFile 
createClusteringInputFile ( self )

createClusteringInputFile()

  createModel 
createModel ( self )

createModel()

Read the model parameters files into a set of Numeric arrays and create a Mixture of Diagonal Gaussians model from it. Also read in the internal data used by the algorithm so fitness comparisons are valid.

  getLabeling 
getLabeling ( self )

  getModel 
getModel ( self )

  getTransformedDataset 
getTransformedDataset ( self,  dataset )

  readDiagemOutput 
readDiagemOutput ( self,  file )

Numeric.array = readDiagemOutput(file)

Reads in an output file produced by DiagEM and returns the numeric valus in a Numeric array. Patterned after the __castDataset() method in mlx.Dataset, but special cased

  run 
run ( self )

run()

Prepares the inputs to the clustering algorithm (DiagEM) and runs it.

  validate 
validate ( self )

validate()

Ensures that all parameters and environment variables nescessary to run the clustering algorithm (DiagEM) are defined.


Table of Contents

This document was automatically generated on Wed Aug 27 14:25:04 2003 by HappyDoc version 2.1