• Home
  • Blog
  • Supervised and Unsupervised Clustering Algorithm Python Files

Supervised and Unsupervised Clustering Algorithm Python Files

0 comments

Think of the difference between Supervised and Unsupervised as having supervising entity letting you know if you are making the right decisions, or not in the case of supervised. The opposite would be true of unsupervised learning. Supervised learning may benefit from label classifications of data such as flowers (roses, tulips, carnations, etc.). Where unsupervised may not have a classification to benefit from as the answer to the question may be the aim.

Using the provided dataset that represents the Titanic disaster, create both an unsupervised clustering algorithm to describe the data and a simple supervised classification prediction to determine who might survive. Implement your algorithms in Python.

Submit 2 Python files with roughly 50-80 lines of code each and 1 MS Word document (or Jupyter Notebook).

  • Code file must include a file header that includes the following information at a minimum: Your name, date, course, and description of the code.
  • Code must be well-commented and in your own words. Explain your decisions and what the code is doing.
  • Code should adhere to best practice code standards.
  • Capture and record results and screenshots in a Word document.

Here is the dataset that has to be used:

icker name A pclass 1 1 1 1 1 1 1 1 1 1 1 N home.dest St Louis, MO Montreal, PQ / Chesterville, ON Montreal, PQ/ Chesterville

A B F G H J K L M N 0 3 Washington, DC 1 1 1 1 1 1 5 6 3 3 1 0 0 0 0 0 0 0 0 0 0 1 36 1 1 1 1 1 1 1 1 1 1 1 4 4 С 4 New York,

A B F G H 1 J K L M 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 3 3 3 13 5 5 1 1 62 N Montreal, PQ Montreal, PQ Calgary, AB Calgary, AB SA B с F K L M O 1 5 1 1 1 1 1 B 3 1 0 0 0 0 0 0 0 147 1 1 1 3 7 7 N Paris, France / New York, NY New York, NY Washington, DCA B K L M N 0 Portland, OR 1 1 1 1 1 1 1 1 New York, NY 2 8 2 3 F 0 0 0 0 0 0 0 0 0 0 0 S S S с С С S с S 1 6 9 9 1 1 1 1 1 CA B с K L o M 166 1 1 1 1 1 1 1 1 F 0 0 1 1 1 1 1 0 0 N Surbiton Hill, Surrey Montreal, PQ Isleworth, England Isleworth, EnglA B K M 1 1 F 1 1 L 6 7 1 1 0 1 7 3 3 3 1 1 1 1 1 1 1 1 1 S S S с с с с с C S C с С с 6 3 1 0 0 1 1 1 5 1 1 0 4 1 1 1 1 1 1 1A B K L M o A F 0 0 0 0 0 0 0 с с S с S N Geneva, Switzerland /Radnor, PA Geneva, Switzerland / Radnor, PA London, England 3A B F J K M o E 35 L 14 2 0 0 S S S 19 0 18 D fema male male fema male male male fema 44 1 1 54 52 37 0 1 1 2 2 2 2 2 2 2 2 2A B J K M N O L 16 F 1 0 0 236 0 0 0 322 1 1 S S S S S S S S S S S S S 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 12 0 0 0 0 1 C

A B J K L M O F 0 0 10 1 1 12 D male male male fema male fema male fema male male male male fema male fema fema female Ε 21 4A B F J K L M o 2 2 2 0 0 0 0 0 0 0 14 14 B N Sarnia, ON Rochester, NY England / Bennington, VT England / Bennington, VT ChelphpGtAH87B K M А 2 2 F 0 S S L 14 10 10 1 S 1 1 1 0 0 N Cornwall / Akron, OH Bournmouth, England Bournmouth, England Bournmouth, Englaphpha4NYHA B J 1 M O K Q Q S S. N Co Cork, Ireland Charlestown, MA Co Sligo, Ireland New York, NY 3 3 3 3 3 3 S F 0 0 0 0 0 0 0 0 0 0A B с F J K 1 M N o 197 3 3 3 3 3 3 3 3 3 3 0 1 1 0 0 2 S S S S S S s Stanton, IA Stanton, IA Stanton, IA Bulgaria Chicago, I

A B J K L M N 0 3 DE male 18 female male 3 3 3 3 3 3 26 S Q Q Q Q Q S S S S S S S 13 21 9 F 0 0 0 0 0 0 0 2 2 0 2 1 1 1 0 0 0A B F K L M N o 1 11 S S B 0 0 0 0 0 0 0 0 S Q с O S S 16 15 с 0 0 0 0 с 306 0 0 0 Q S S S S S Q S S S S S 15 15 1 0 0 0 0 0A B F. K L M N o 1 0 0 0 15 S S S S S S S s 1 1 0 15 0 male 0 0 0 0 0 S S S S 13 S C 15 15 0 0 0 0 0 58 A 16 с с с Q S Q Q QA B F G K 1 M N o 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 0 0 0 1 1 196 S S S S S с Q Q S S S S 0 0 0 0 0 S A A 15 S S S Q S S S S S 15A B F 1 M N o 0 53 3 3 3 3 3 3 3 3 3 3 3 3 0 0 1 1 1 0 0 0 0 K Q Q Q S S Q S S S Q S S S 201 15 0 0 0 0 S S S 16 309 0 0 0 0A B F J K L M N o 0 D 13 Finland Sudbury, ON 3 3 3 3 3 3 3 3 3 3 3 9 0 0 0 0 0 0 0 0 0 1 0 181 13 S S S S S S S с S S Q Q Q QA B F K L M N o 1 1 0 0 0 0 0 0 S S S S S S S s 0 1 1 15 S S с С с 0 1 с D D 0 0 S S 0 0 0 0 1 1 0 0 0 S S S S S 9 S 0 0 maleA B F J K L M N 0 0 0 0 0 0 0 8 32 Q C с с Q S S S S S S S S s S 67 8 8 8 8 8 8 S 8 8 S S 1 1 0 с 0 0 2 2 2 1165 1166 1167 11A B L M N F 0 0 0 13 0 0 0 0 0 K Q Q S S S S S С S S S S S S S S S 0 с 0 261 9 0 0 0 0 0 0 1 0 S S B 15 0 S S 0 0 0 13 0 0 13A B F J K L M N 1 0 0 0 S S S 0 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 128

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}