Clustering in python

First, use dataset1 (csv) with unsupervised learning techniques. Use Kmeans to determine the # of

clusters. Tabulate the # of clusters from 1 – 40 and total within-cluster variance. Plot the scree plot. Using

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

hierarchal clustering, calculate the pairwise distance. Create various dendrograms using complete and

average linkage. Cut dendogram into groups of 5-7. Which is the most appropriate # of groups?

Next, do the same exercise above except this time we use random forest classification.

Last, using dataset2 (csv), write a function (without using Kmeans related packages) that calculates the

within cluster variance, aggregates the data by the cluster number, and plots “total within cluster vs.

number of cluster”. Add the cluster number to the last column of dataset, predict the cluster number using

logistic regression and calculate the accuracy of your model.

Briefly compare results from each method.

Sample Solution

Sample Solution

The post Clustering in python appeared first on homework handlers.