pyclustering.samples.answer_reader Class Reference

Answer reader for samples that are used by pyclustering library. More...

Public Member Functions

def __init__ (self, answer_path)
 Creates instance of answer reader to read proper clustering results of samples. More...
 
def get_clusters (self)
 Read proper clustering results. More...
 
def get_noise (self)
 Read proper clustering results. More...
 
def get_cluster_lengths (self)
 Read proper cluster lengths. More...
 

Detailed Description

Answer reader for samples that are used by pyclustering library.

Definition at line 27 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.samples.answer_reader.__init__ (   self,
  answer_path 
)

Creates instance of answer reader to read proper clustering results of samples.

Parameters
[in]answer_path(string): Path to clustering results (answers).

Definition at line 33 of file __init__.py.

Member Function Documentation

◆ get_cluster_lengths()

def pyclustering.samples.answer_reader.get_cluster_lengths (   self)

Read proper cluster lengths.

Cluster length means amount of point in a cluster.

Returns
(list) Cluster lengths where each length means amount of points in a cluster.

Definition at line 67 of file __init__.py.

◆ get_clusters()

def pyclustering.samples.answer_reader.get_clusters (   self)

Read proper clustering results.

Returns
(list) Clusters where each cluster is represented by list of index point from dataset.

Definition at line 45 of file __init__.py.

Referenced by pyclustering.samples.answer_reader.get_cluster_lengths().

◆ get_noise()

def pyclustering.samples.answer_reader.get_noise (   self)

Read proper clustering results.

Returns
(list) Noise where each outlier is represented by index point from dataset.

Definition at line 56 of file __init__.py.


The documentation for this class was generated from the following file: