Skip to content

Commit

Permalink
adding module 2 and 3 for WS2
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaou committed Nov 1, 2024
1 parent eb7a13a commit e8008be
Show file tree
Hide file tree
Showing 240 changed files with 26,660 additions and 3,349 deletions.
46 changes: 23 additions & 23 deletions WS1/module_1/3_control_flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"id": "f630a56c-0024-4660-ab8b-2251255d48ab",
"metadata": {},
"outputs": [
Expand All @@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"id": "5927935b-294c-4a83-be9c-b9d21b4b455e",
"metadata": {},
"outputs": [],
Expand All @@ -85,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"id": "767f3f48-e362-4482-9c0c-1dcf5978b8b9",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -123,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"id": "548b0e62-9299-4250-99b8-f9e39d0f4ca6",
"metadata": {},
"outputs": [
Expand All @@ -146,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 7,
"id": "ffbe241f-cd2c-435b-8de0-bf3da99fda63",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -221,7 +221,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 8,
"id": "8ea05cc0-c4b9-4564-b1cb-c908b5456158",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -249,23 +249,23 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 9,
"id": "188b369a-6e23-4baa-a188-b5203ac029f5",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Row [0.90852788 0.2487985 0.85072772]\n",
"Element 0.9085278793247539\n",
"Element 0.24879849782046126\n",
"Element 0.850727718969466\n",
"Row [0.47535768 0.65768048 0.06591334]\n",
"Element 0.4753576832527805\n",
"Element 0.6576804761389058\n",
"Element 0.06591334377775893\n",
"\n",
"Row [0.45354185 0.76613525 0.84683081]\n",
"Element 0.4535418487717926\n",
"Element 0.7661352543565969\n",
"Element 0.8468308065135864\n",
"Row [0.83706207 0.24762114 0.13013096]\n",
"Element 0.8370620670235993\n",
"Element 0.24762113678249653\n",
"Element 0.13013095843746258\n",
"\n"
]
}
Expand Down Expand Up @@ -300,7 +300,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 10,
"id": "db5a8549-3326-42cf-81ac-30ddca05d190",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -352,8 +352,8 @@
"source": [
"# infinite loop: interrupt execution!\n",
"\n",
"while True:\n",
" print('This will keep running...')"
"#while True:\n",
"# print('This will keep running...')"
]
},
{
Expand All @@ -380,7 +380,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"id": "584dde7b-4b20-4686-a988-54eb3188297e",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -410,7 +410,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 12,
"id": "7509cfe2-2d44-4cb8-85a5-c385341e122a",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -460,9 +460,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "aimbio",
"language": "python",
"name": "python3"
"name": "aimbio"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -474,7 +474,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.8.18"
}
},
"nbformat": 4,
Expand Down
7 changes: 6 additions & 1 deletion WS1/module_1/4_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@
"\n",
"Level: <span style=\"color:green\">Easy</span>.\n",
"\n",
"![alt text](../theory/images/Flow_chart.png)"
"<img src=\"../../media/WS1/flow_chart.png\" \n",
" alt=\"Picture\" \n",
" width=\"400\" \n",
" height=\"600\" \n",
" style=\"display: block; margin: 0 auto\" />\n",
"\n"
]
},
{
Expand Down
10 changes: 7 additions & 3 deletions WS1/module_1/5_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"id": "5c66aeb4-b91f-46c8-9f5a-f155cc3da0ed",
"metadata": {},
"source": [
"### Exercise: Remove all outliers\n",
"## Exercise: Remove all outliers\n",
"\n",
"Remove **all** possible outliers from the given array, based on the cutoff (given cutoff value multiplied by standard deviation).\n",
"Here, we want to remove all values that are more than three standard deviations from the mean.\n",
Expand Down Expand Up @@ -46,7 +46,7 @@
"id": "e8d94308-bbe9-497b-9a22-623225a5be03",
"metadata": {},
"source": [
"### Exercise: Binary to English translation\n",
"## Exercise: Binary to English translation\n",
"\n",
"You are provided with an English-to-binary code translation table and messages in binary code. \n",
"You have to decode the given messages to find out what Chemistry Cat says.\n",
Expand Down Expand Up @@ -115,7 +115,11 @@
"id": "c0a7449f-3051-4629-887e-b0cda88a27da",
"metadata": {},
"source": [
"![alt text](../theory/images/spoiler.jpg)"
"<img src=\"../../media/WS1/spoiler.jpg\" \n",
" alt=\"Picture\" \n",
" width=\"400\" \n",
" height=\"300\" \n",
" style=\"display: block; margin: 0 auto\" />"
]
},
{
Expand Down
Loading

0 comments on commit e8008be

Please sign in to comment.