Question: table [ [ , Animal,Weight ( kg ) , table [ [ Top Speed ] , [ ( k m h ) write

\table[[,Animal,Weight (kg),\table[[Top Speed],[(kmh)
write a python code to cluster the animals in this table ,first we need to transform non numeric features to numeric ones (use other method than one hot encoding), standardize the data ,plot the elbow graph and find the optimal number of clusters, print the clusters output (the animals contained in ) and label the clusters, the clusters must realistic as much as possible foe example you can't put a sheep and a cheetah in the same cluster.
and the kmeans algorithm can't be imported from sklearn library , it has to be written as a function within the code.
please make sure that there are no errors in the code
\table[[,Animal,Weight (kg),\table[[Top Speed],[(kmh)
\ table [ [ , Animal,Weight ( kg ) , \ table [ [

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!