I'm a bit confused about the clusering with Scipy in Python. Here is my sourcecode:
import scipy.spatial.distance as dist
import numpy, scipy
dataMatrix = numpy.array(matrix)
distMatrix = dist.pdist(dataMatrix, 'euclidean')
distSquareMatrix = dist.squareform(distMatrix)
Y = scipy.cluster.hierarchy.linkage(distSquareMatrix, method='complete')
Do I have to use the 'distMatrix' or the squareform 'distSquareMatrix' as input for the clustering? Because I saw both methods in other posts. But the output is different. Now I'm not sure what I have to choose.