|
5 | 5 | "id": "7d5a9eff-f82a-45af-8b48-94e5816ba44d", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | | - "# Comprehensive Exercise on Clustering\n", |
| 8 | + "# Comprehensive Exercise on Segmentation Analysis\n", |
9 | 9 | "\n", |
10 | | - "One extremely helpful application of clustering is in data exploration. Clustering helps us find fundamental structures in data that is unknown to us, e.g., whether individual samples have any similarities that we do not yet recognize.\n", |
| 10 | + "One extremely helpful application of Machine Learning is in data exploration and segementation analysis. Clustering algorithms help us find fundamental structures in data that is unknown to us, e.g., whether individual data points have any similarities that we do not yet recognize.\n", |
11 | 11 | "\n", |
12 | 12 | "Let's try this out on a dataset about demographics, health metrics, and engagement patterns of patients.\n", |
13 | 13 | "\n", |
|
25 | 25 | "* Load the data from the file [patient_segmentation_dataset.csv](patient_segmentation_dataset.csv)\n", |
26 | 26 | "* Inspect the data and make yourself familiar with its content, data types, distributions, etc.\n", |
27 | 27 | "* Decide for a fitting clustering algorithm based on your data insights (e.g., can KMeans be used for this specific data?)\n", |
28 | | - "* Prepare the data for clustering and apply the clustering algorithm\n", |
29 | | - "* Explore the clusters (patient segments) to hopefully gain helpful insights\n", |
| 28 | + "* Prepare the data for clustering and apply the clustering algorithm. Compare different clustering algorithms.\n", |
| 29 | + "* Explore the clusters (patient segments) to gain helpful insights\n", |
30 | 30 | "\n", |
31 | 31 | "**Use of the AI assistant**\n", |
32 | 32 | "\n", |
|
38 | 38 | }, |
39 | 39 | { |
40 | 40 | "cell_type": "code", |
41 | | - "execution_count": 2, |
| 41 | + "execution_count": null, |
42 | 42 | "id": "f4a890b2-8561-4e66-825e-c570313e4659", |
43 | 43 | "metadata": {}, |
44 | | - "outputs": [ |
45 | | - { |
46 | | - "data": { |
47 | | - "text/html": [ |
48 | | - "\n", |
49 | | - " <div style=\"font-size:7pt\">\n", |
50 | | - " This notebook may contain text, code and images generated by artificial intelligence.\n", |
51 | | - " Used model: vllm-llama-4-scout-17b-16e-instruct, vision model: None, endpoint: https://kiara.sc.uni-leipzig.de/api/v1, bia-bob version: 0.34.3.. Do not enter sensitive or private information and verify generated contents according to good scientific practice. Read more: <a href=\"https://github.com/haesleinhuepf/bia-bob#disclaimer\">https://github.com/haesleinhuepf/bia-bob#disclaimer</a>\n", |
52 | | - " </div>\n", |
53 | | - " " |
54 | | - ], |
55 | | - "text/plain": [ |
56 | | - "<IPython.core.display.HTML object>" |
57 | | - ] |
58 | | - }, |
59 | | - "metadata": {}, |
60 | | - "output_type": "display_data" |
61 | | - } |
62 | | - ], |
| 44 | + "outputs": [], |
63 | 45 | "source": [ |
64 | 46 | "# Import bia-bob as a helpful Python & Medical AI expert\n", |
65 | 47 | "from bia_bob import bob\n", |
|
74 | 56 | }, |
75 | 57 | { |
76 | 58 | "cell_type": "code", |
77 | | - "execution_count": 3, |
| 59 | + "execution_count": null, |
78 | 60 | "id": "316bc5fa-49fb-4573-9344-b1f01616834f", |
79 | 61 | "metadata": {}, |
80 | | - "outputs": [ |
81 | | - { |
82 | | - "data": { |
83 | | - "text/markdown": [ |
84 | | - "I'm a medical data science AI assistant, an expert in Python programming and data analysis, specializing in tasks like data analysis, feature engineering, machine learning, and deep learning for medical datasets." |
85 | | - ], |
86 | | - "text/plain": [ |
87 | | - "<IPython.core.display.Markdown object>" |
88 | | - ] |
89 | | - }, |
90 | | - "metadata": {}, |
91 | | - "output_type": "display_data" |
92 | | - } |
93 | | - ], |
| 62 | + "outputs": [], |
94 | 63 | "source": [ |
95 | 64 | "%bob Who are you ? Just 1 sentence!" |
96 | 65 | ] |
97 | 66 | }, |
98 | 67 | { |
99 | 68 | "cell_type": "code", |
100 | | - "execution_count": 4, |
| 69 | + "execution_count": null, |
101 | 70 | "id": "a34a8c79-882d-4804-a7cb-16b6bdcdc62b", |
102 | 71 | "metadata": {}, |
103 | 72 | "outputs": [], |
|
0 commit comments