Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testMndlWrongStartClusterAllocationSampleSimple4(self):
self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [[1.5, 0.0], [1.5, 2.0], [1.5, 4.0], [1.5, 6.0]], [15, 15, 15, 15, 15], splitting_type.MINIMUM_NOISELESS_DESCRIPTION_LENGTH);
def testClusteringSampleSimple4(self):
self.templateClusteringResults(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 0.7, 3, [15, 15, 15, 15, 15], False);
def testLengthProcessedSampleSimple4(self):
self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 0.1, 0, 10);
self.templateLengthProcessData(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 10, 65, 75);
def som_sample4():
template_self_organization(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 5, 100, type_conn.grid_four);
def cluster_simple_sample():
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 8, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 10, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE6, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE8, 15, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 7, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE10, 7, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 5, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 7, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE13, 2, 0)
template_clustering(SIMPLE_SAMPLES.SAMPLE_ELONGATE, 7, 0)
def sample_simple_04():
elbow_analysis(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 10)
def experiment_execution_time(show_dyn = False, ccore = False):
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, 0.999, show_dyn, False, True, False, ccore);
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 1, 0.999, show_dyn, False, True, False, ccore);
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 1, 0.999, show_dyn, False, True, False, ccore);
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 1, 0.999, show_dyn, False, True, False, ccore);
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE5, 1, 0.999, show_dyn, False, True, False, ccore);
template_clustering(SIMPLE_SAMPLES.SAMPLE_ELONGATE, 0.5, 0.999, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_LSUN, 0.45, 0.98, show_dyn, False, False, True, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_TARGET, 0.4, 0.98, show_dyn, False, False, True, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS, 0.3, 0.98, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_WING_NUT, 0.28, 0.98, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_CHAINLINK, 0.8, 0.98, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_HEPTA, 1, 0.98, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_TETRA, 0.3, 0.98, show_dyn, False, True, False, ccore);
template_clustering(FCPS_SAMPLES.SAMPLE_ATOM, 25, 0.98, show_dyn, False, True, False, ccore);
def cluster_simple4():
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, [5, 5], 1.0, 0.999, True, True, True);
def cluster_sample4():
template_clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE4, 5, 1.0);
def cluster_sample4():
start_centers = [[1.5, 0.0], [1.5, 2.0], [1.5, 4.0], [1.5, 6.0], [1.5, 8.0]]
template_clustering(start_centers, SIMPLE_SAMPLES.SAMPLE_SIMPLE4)