Network Data Analytics by K. G. Srinivasa Siddesh G. M. & Srinidhi H

Network Data Analytics by K. G. Srinivasa Siddesh G. M. & Srinidhi H

Author:K. G. Srinivasa, Siddesh G. M. & Srinidhi H.
Language: eng
Format: epub
Publisher: Springer International Publishing, Cham


plt.plot()

plt.title( ‘Dataset’ )

plt.xlabel( ‘English’ )

plt.ylabel( ‘Math’ )

plt.scatter(x1, x2)

plt.show()

The task of executing clustering on the dataset with English and Math with code in Python is as shown below. First, the value of the k number of clusters is determined through elbow curve method. The same modules and wss method are used for determining the optimal number of clusters. The output of the wss plot is as shown in Fig. 11.7 The number of clusters for this example is three which is inferred from the elbow curve because from k = 3 onward, the value of wss almost remains the same.

Fig. 11.7Elbow curve for clustering case study on student marks (English and Math)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.