K-Mean Clustering

所属分类:其他
开发工具:matlab
文件大小:172KB
下载次数:3
上传日期:2020-05-27 23:58:52
上 传 者thiru95
说明:  k means clustering with matlab code

文件列表:
K-Mean Clustering\answers.pdf (176133, 2017-05-16)
K-Mean Clustering\Data\yeast_test.txt (41593, 2017-05-16)
K-Mean Clustering\Source Code\main.m (2764, 2017-05-16)
K-Mean Clustering\Data (0, 2020-03-16)
K-Mean Clustering\Source Code (0, 2020-03-16)
K-Mean Clustering (0, 2020-03-16)

### Task 1 In this task you will implement k-means clustering. ### Command-line Arguments Your program will be invoked as follows: k_means_cluster The arguments provide to the program the following information: The first argument, , is the path name of a file where the data is stored. The path name can specify any file stored on the local computer. The second argument, , specifies the number of clusters. The third argument, , specifies the number of iterations of the main loop. The initialization stage (giving a random assignment of objects to clusters, and computing the means of those random assignments) does not count as an iteration. The data file will follow the same format as the training and test files in the UCI datasets directory. A description of the datasets and the file format can be found on this link. Your code should also work with ANY OTHER training and test files using the same format as the files in the UCI datasets directory. As the description states, do NOT use data from the last column (i.e., the class labels) as features. In these files, all columns except for the last one contain example inputs. The last column contains the class label. Link to data set is given below :
    UCI dataset directory
### Implementation Guidelines Use the L2 distance (the Euclidean distance) for computing the distance between any two objects in the dataset. ### Output After the initialization stage, and after each iteration, you should print the value E(S1,S2,...,SK), as defined in page 27 of the clustering slides. The output should follow this format: After initialization: error = %.4f After iteration 1: error = %.4f After iteration 2: error = %.4f ... ### Running The Program 1) open main.m file 2) type main('yeast_test.txt', 2, 5) in command window 3) Press Enter

近期下载者

相关文件


收藏者