Skip to content

Commit 38dfc3c

Browse files
Add segementation exercise and solution, include in toc
1 parent 3bfe4f8 commit 38dfc3c

6 files changed

Lines changed: 4013 additions & 774 deletions

File tree

_toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ parts:
5353
chapters:
5454
- file: day3.1_ml-application/readme.md
5555
sections:
56-
- file: day3.1_ml-application/01_notebook.ipynb
56+
- file: day3.1_ml-application/01a_segmentation-exercise.ipynb
57+
- file: day3.1_ml-application/01b_segmentation-solution.ipynb
5758

5859
- file: day3.2_dl-application/readme.md
5960
sections:

day3.1_ml-application/exercise_clustering.ipynb renamed to day3.1_ml-application/01a_segmentation-exercise.ipynb

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"id": "7d5a9eff-f82a-45af-8b48-94e5816ba44d",
66
"metadata": {},
77
"source": [
8-
"# Comprehensive Exercise on Clustering\n",
8+
"# Comprehensive Exercise on Segmentation Analysis\n",
99
"\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",
1111
"\n",
1212
"Let's try this out on a dataset about demographics, health metrics, and engagement patterns of patients.\n",
1313
"\n",
@@ -25,8 +25,8 @@
2525
"* Load the data from the file [patient_segmentation_dataset.csv](patient_segmentation_dataset.csv)\n",
2626
"* Inspect the data and make yourself familiar with its content, data types, distributions, etc.\n",
2727
"* 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",
3030
"\n",
3131
"**Use of the AI assistant**\n",
3232
"\n",
@@ -38,28 +38,10 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 2,
41+
"execution_count": null,
4242
"id": "f4a890b2-8561-4e66-825e-c570313e4659",
4343
"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": [],
6345
"source": [
6446
"# Import bia-bob as a helpful Python & Medical AI expert\n",
6547
"from bia_bob import bob\n",
@@ -74,30 +56,17 @@
7456
},
7557
{
7658
"cell_type": "code",
77-
"execution_count": 3,
59+
"execution_count": null,
7860
"id": "316bc5fa-49fb-4573-9344-b1f01616834f",
7961
"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": [],
9463
"source": [
9564
"%bob Who are you ? Just 1 sentence!"
9665
]
9766
},
9867
{
9968
"cell_type": "code",
100-
"execution_count": 4,
69+
"execution_count": null,
10170
"id": "a34a8c79-882d-4804-a7cb-16b6bdcdc62b",
10271
"metadata": {},
10372
"outputs": [],

0 commit comments

Comments
 (0)