For the spectral clustering algorithm in the large-scale samples, there are bottlenecks in the storage space and computing time, and the paper analyzes the current common solutions, namely based on the sparse t-nearest neighbor spectral clustering. In order to improve the accuracy of the spectral clustering algorithms, the Euclidean distance based on the attribute weight of information entropy is proposed to calculate the similarity between the samples. First, calculate the weight of each attribute of the sample and then calculate the similarity between the samples. The degree matrix is applied to the spectral clustering of sparse t-nearest neighbors in the last number of numbers. The experimental results show that the clustering accuracy of the method on some data sets is higher than that of the original spectral clustering algorithm.