machine learning python -- 2

Job ID: 30728787

Budget: €30 – €250 EUR

This assignment uses the data of the example The spam filter.
1. Extract two clusters from the data, using the k-means method. Do these groups match the 0/1 groups given by the target column spam?
2. Drop the three cap_ columns and binarize all the word_ columns, transforming them into dummies for the occurrence of the corresponding word. Repeat the analysis of question 1 with these binarized data.
3. Repeat the clustering exercise with the binarized data, after removing a few features, those that contribute less to predict spamness.
4. Compare the results of the three analyses. What do you conclude?

Submission

1. Submit a document with your code and short comments.