source: orange/Orange/orng/orngClustering.py @ 9723:d0c9015bc73a

Revision 9723:d0c9015bc73a, 2.5 KB checked in by markotoplak, 2 years ago (diff)

Orange.distance renames.

Line 
1from Orange.clustering.kmeans import * 
2# from Orange.cluster.hierarchical import *
3
4from Orange.core import \
5     DistanceMap, \
6     DistanceMapConstructor, \
7     ExamplesDistance, \
8     ExamplesDistance_Normalized, \
9     ExamplesDistanceConstructor
10
11from Orange.distance import HammingDistance as ExamplesDistance_Hamming, \
12    DTWDistance as ExamplesDistance_DTW, \
13    EuclideanDistance as ExamplesDistance_Euclidean, \
14    ManhattanDistance as ExamplesDistance_Manhattan, \
15    MaximalDistance as ExamplesDistance_Maximal, \
16    ReliefDistance as ExamplesDistance_Relief, \
17    DTW as ExamplesDistanceConstructor_DTW, \
18    Euclidean as ExamplesDistanceConstructor_Euclidean, \
19    Hamming as ExamplesDistanceConstructor_Hamming, \
20    Manhattan as ExamplesDistanceConstructor_Manhattan, \
21    Maximal as ExamplesDistanceConstructor_Maximal, \
22    Relief as ExamplesDistanceConstructor_Relief, \
23    PearsonR as ExamplesDistanceConstructor_PearsonR, \
24    PearsonRDistance as ExamplesDistance_PearsonR, \
25    SpearmanR as ExamplesDistanceConstructor_SpearmanR, \
26    SpearmanRDistance as ExamplesDistance_SpearmanR
27
28from Orange.clustering.kmeans import Clustering as KMeans
29from Orange.clustering.kmeans import init_random as kmeans_init_random
30from Orange.clustering.kmeans import init_diversity as kmeans_init_diversity
31from Orange.clustering.kmeans import init_hclustering as KMeans_init_hierarchicalClustering
32from Orange.clustering.kmeans import data_center as data_center
33from Orange.clustering.kmeans import plot_silhouette as plot_silhouette
34from Orange.clustering.kmeans import score_distance_to_centroids as score_distance_to_centroids
35from Orange.clustering.kmeans import score_silhouette as score_silhouette
36from Orange.clustering.kmeans import score_fast_silhouette as score_fastsilhouette
37
38from Orange.clustering.hierarchical import clustering as hierarchicalClustering
39from Orange.clustering.hierarchical import clustering_features as hierarchicalClustering_attributes
40from Orange.clustering.hierarchical import cluster_to_list as hierarchicalClustering_clusterList
41from Orange.clustering.hierarchical import top_clusters as hierarchicalClustering_topClusters
42from Orange.clustering.hierarchical import top_cluster_membership as hierarhicalClustering_topClustersMembership
43from Orange.clustering.hierarchical import order_leaves as orderLeaves
44
45from Orange.clustering.hierarchical import dendrogram_draw, DendrogramPlotPylab, DendrogramPlot
46#left for backward compatibility
47hierarchicalClustering_attributes
Note: See TracBrowser for help on using the repository browser.