Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plese provide code in python or java Q6 Cluster the following e1ght points into three clusters with features (x,y) : A1(2,10);A2(2,5);A3(8,4);B1(5,8);B2(7,5);B3(6,4);C1(1,2);C2(4,9) : The distance function

image text in transcribed

plese provide code in python or java

Q6 Cluster the following e1ght points into three clusters with features (x,y) : A1(2,10);A2(2,5);A3(8,4);B1(5,8);B2(7,5);B3(6,4);C1(1,2);C2(4,9) : The distance function is Euclidean distance. Suppose initially we assign A1,B1, and C1 as the center of each cluster, respectively. 1. Write a program that uses the kmeans algorithm to show the final three clusters. You can use any programming language. For each iteration, you need to output the distance and the group matrix values. 2. Use the median value as your centroid and show the final three clusters. For each iteration, you need to output the distance and the group matrix values. 3. Comment on the result

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

11. Are your speaking notes helpful and effective?

Answered: 1 week ago

Question

The Goals of Informative Speaking Topics for Informative

Answered: 1 week ago