How to use the pyclustering.samples.definitions.SIMPLE_SAMPLES function in pyclustering

To help you get started, we’ve selected a few pyclustering examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github annoviko / pyclustering / pyclustering / clustering / dbscan / tests.py View on Github external
def testLengthProcessedSampleSimple1(self):    
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 0.7, 0, 10);
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 0.5, 0, 10);
github annoviko / pyclustering / pyclustering / clustering / optics / tests.py View on Github external
def testClusteringSampleSimple1(self):
        self.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 0.4, 2, [5, 5], False);
github annoviko / pyclustering / pyclustering / clustering / kmeans / tests.py View on Github external
def testClusterOneAllocationByCore(self):
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, [[1.0, 2.5]], [10], True);
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, [[0.5, 0.2]], [23], True);
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, [[0.2, 0.1]], [60], True);
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [[2.0, 5.0]], [75], True);
        self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, [[0.0, 0.0]], [60], True);
github annoviko / pyclustering / pyclustering / clustering / syncnet / tests.py View on Github external
def testClusteringSampleSimple1(self):
        self.templateClustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, 0.999, solve_type.FAST, initial_type.RANDOM_GAUSSIAN, True, False, 0.05, conn_represent.MATRIX, [5, 5], False);
github annoviko / pyclustering / pyclustering / clustering / optics / tests.py View on Github external
def testClusteringSampleSimple2(self):
        self.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, 2, [5, 8, 10], False);
github annoviko / pyclustering / pyclustering / clustering / syncsom / tests.py View on Github external
def testSomClusterAllocationSampleSimple3(self):
        self.templateLengthSomCluster(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, [4, 4], 3, 0.999);
github annoviko / pyclustering / pyclustering / utils / examples / utils_examples.py View on Github external
def display_cluster_distances_simple_sample_03():
    display_two_dimensional_cluster_distances(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4);
github annoviko / pyclustering / pyclustering / container / examples / kdtree_examples.py View on Github external
def kdtree_sample_simple01():
    template_build_visualize(SIMPLE_SAMPLES.SAMPLE_SIMPLE1);
github annoviko / pyclustering / pyclustering / cluster / examples / fcm_examples.py View on Github external
def cluster_sample6():
    start_centers = [[2.0, 6.0], [8.5, 4.5]]
    template_clustering(start_centers, SIMPLE_SAMPLES.SAMPLE_SIMPLE6)
github annoviko / pyclustering / pyclustering / cluster / examples / antmean_examples.py View on Github external
def cluster_sample1():
    template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                        count_clusters=2)