def silhouette(data_set='<STR_LIT>'):
if not data_available(data_set):<EOL><INDENT>download_data(data_set)<EOL><DEDENT>mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, '<STR_LIT>'))<EOL>inMean = np.mean(mat_data['<STR_LIT:Y>'])<EOL>inScales = np.sqrt(np.var(mat_data['<STR_LIT:Y>']))<EOL>X = mat_data['<STR_LIT:Y>'] - inMean<EOL>X = X / inScales<EOL>Xtest = mat_data['<STR_LIT>'] - inMean<EOL>Xtest = Xtest / inScales<EOL>Y = mat_data['<STR_LIT>']<EOL>Ytest = mat_data['<STR_LIT>']<EOL>return data_details_return({'<STR_LIT:X>': X, '<STR_LIT:Y>': Y, '<STR_LIT>': Xtest, '<STR_LIT>': Ytest}, data_set)<EOL>
Ankur Agarwal and Bill Trigg's silhoutte data.