Table of Contents

Class: KMeans compClust/mlx/wrapper/KMeans.py
Base Classes   
ML_Algorithm.ML_Algorithm
Methods   
__init__
copy
createClusteringCommandLine
create_clustering_command_line
getLabeling
getModel
run
validate
  __init__ 
__init__ (
        self,
        dataset=None,
        parameters=None,
        )

KMeans(dataset, parameters)

Creates a new KMeans algorithm with the given dataset and algorithm parameters. To run, use the run() method.

  copy 
copy ( self )

  createClusteringCommandLine 
createClusteringCommandLine ( self )

commandLine = createClusteringCommandLine()

Returns the command-line used to run the KMeans.

  create_clustering_command_line 
create_clustering_command_line ( self )

command_line = create_clustering_command_line()

DEPRECATED. Use createClusteringCommandLine() instead. Returns the command-line used to run the KMeans.

  getLabeling 
getLabeling ( self )

  getModel 
getModel ( self )

  run 
run ( self )

status = run()

Runs the KMeans algorithm. Sets self.model and self.labeling that resulted from the run, returns a status token

  validate 
validate ( self )

validate()

Returns 1 if all parameters and environment variables nescessary to run kmeans are defined, 0 otherwise.


Table of Contents

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