Question
The source code should be in .ipynb format

Transcribed Image Text:1 Programming assignment
1. k-means clustering assignment
● Mission: Write Python3 code to do clustering using k-means. Use the "elbow" method to help you
select the optimal number of clusters by fitting the model with a range of values for k. Plot the
clusters in 3-d figures.
• Data set: seeds Data Set
-
Read the data set description.
• Approaches:
Clustering algorithm (required): k-means.
* Using scikit learn library: sklearn.cluster.KMeans.
* Using Yellowbrick to perform the "elbow" method: Elbow Method
Plot the clusters (required): the two tools are required for 3-d projections to work.
* Using Matplotlib: Matplotlib: Visualization with Python
* Using Matplotlib toolkit: mplot3d
Other data pre-processing or feature engineering methods (optional): You can apply any tech-
nique you prefer.
• Performance metric: Successfully apply k-means on the dataset and plot the resulting clusters with
indicated programming tools.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 3 images

Knowledge Booster
Similar questions
- Attach File Browse My Computer QUESTION 6 A. Simplify the following expression by using the laws of logic. Suppose the bit strings of A & B are A: 0100001010, B: 0100111011. Find the bit strings of ANB AUB Attach File Browse My Computer BAAAarrow_forwardSyntaxError: invalid syntax (<string>, line 56)arrow_forwardWrite a program that accepts two four-digit binary numbers, converts them to decimal values, adds them together, and prints both the decimal values and the result of the addition. Requirements: Functionality. (80pts) No Syntax Errors. (80pts*) *Code that cannot be compiled due to syntax errors is nonfunctional code and will receive no points for this entire section. Clear and Easy-To-Use Interface. (10pts) Users should easily understand what the program does and how to use it. Users should be prompted for input and should be able to enter data easily. Users should be presented with output after major functions, operations, or calculations. All the above must apply for full credit. Users must be able to enter a 4-bit binary number in some way. (10pts) No error checking is needed here and you may assume that users will only enter 0’s and 1’s, and they will only enter 4 bits. Binary to Decimal Conversion (50pts) You may assume that users will only give numbers that add up to…arrow_forward
arrow_back_ios
arrow_forward_ios