Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Dataset that needs to be uploaded can be found here: https://drive.google.com/open?id=1HxEHtEid6-4bOQX9OMUAYM4HFKpSwwsL Write a computer program using Python to implement the K-means clustering algorithm that

The Dataset that needs to be uploaded can be found here: https://drive.google.com/open?id=1HxEHtEid6-4bOQX9OMUAYM4HFKpSwwsL

Write a computer program using Python to implement the K-means clustering algorithm that was explained in the class. Your program should start by prompting the user to enter the file name where the data are stored and the number of clusters (K). Assume that the dataset is stored as comma-separated values similar to the examples that we used in the class. The first line is a header for the attributes. The data records starts from the second line where every line represents one record. Your program should be able to ignore any attribute (column "UNS" for the dataset). The results will show the centroids of the clusters, the number of instances in each class, the total square error, and the number iterations that was used to get this result. You need to submit your complete source code and a project report that include: Discussion of the complexity of the implemented algorithm, The advantage and disadvantages of the algorithm Any possible enhancement to this algorithm. Screen shots of the results with different number of clusters Discussion of the testing results of the implemented algorithm for different datasets that was used for testing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

=+employee to take on the international assignment?

Answered: 1 week ago

Question

=+differences in home- and host-country costs of living?

Answered: 1 week ago