Challenge

Project 2

Implement Clustering and then predict the class of car from “Car dataset”?

Importing Libraries:

Reading the data and separating the target variables:

Performing Standardization and One hot encoding and combining the data:

Checking the converted data:

Clustering using Kmeans:

Tuning the model:

Defining the best clusters:

Visualizing the best clusters:

1. Price:

2. MPG:

Clustering using Agglomerative:

Defining  the clusters:

Visualizing the clusters:

1. Price:

2. MPG:

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.