Skip to content

Commit

Permalink
Update homework notebooks for WiSe 24/25 (#18)
Browse files Browse the repository at this point in the history
* Update notebooks hw1&2: dependencies, points, additional task in hw2

* Update hw3 dependencies, points

* Update hw4 dependencies, optional points

* Update Due Dates, formatting, restructure hw3

---------

Co-authored-by: Janes Luc Sanne <j.sanne@tu-berlin.de>
  • Loading branch information
JeanAnNess and Janes Luc Sanne authored Oct 2, 2024
1 parent 45b7d01 commit a11866e
Show file tree
Hide file tree
Showing 4 changed files with 1,091 additions and 799 deletions.
90 changes: 46 additions & 44 deletions homework/H1_Basics.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### A Pluto.jl notebook ###
# v0.19.40
# v0.19.46

using Markdown
using InteractiveUtils
Expand Down Expand Up @@ -43,7 +43,7 @@ html"""
"""

# ╔═╡ bdcb27c5-0603-49ac-b831-d78c558b31f0
md"Due date: **Monday, April 29th 2024 at 23:59**"
md"Due date: **Monday, October 28th 2024 at 23:59**"

# ╔═╡ 6be73c03-925c-4afa-bd66-aca90e6b49fe
md"This notebook gives you live feedback!
Expand Down Expand Up @@ -121,7 +121,7 @@ md"## Exercise 1: Warm up

# ╔═╡ e5670193-6221-49c6-a880-d287f717545e
task("Define variables such that their type matches the given variable name.
You can give the variables any value you want.")
You can give the variables any value you want.", 0.5)

# ╔═╡ b96fde59-1f2a-4d07-a5cc-6ec48e5079f1
my_string = missing # replace `missing` with your code!
Expand Down Expand Up @@ -194,7 +194,7 @@ md"### Exercise 1.2 – Broadcasting"
task("""The following expressions are all broken.
Fix each expression by broadcasting.
This only requires **adding a single dot** (`.`) to each line.""")
This only requires **adding a single dot** (`.`) to each line.""", 0.5)

# ╔═╡ c84be3a2-73a9-42f1-bf6b-3fbf64258cf5
my_square_roots = sqrt([4, 9, 16])
Expand Down Expand Up @@ -249,7 +249,7 @@ end
md"### Exercise 1.3 – Types"

# ╔═╡ 23174858-aa5f-42bf-ac1c-56ee88d87f7f
task("Define `my_types` such that it is a vector of the types in `my_vars`.")
task("Define `my_types` such that it is a vector of the types in `my_vars`.", 0.5)

# ╔═╡ 7d098a0b-1a11-4225-b044-82d29f05ad05
my_vars = [1.3, 'b', 3, im, "String", 2//3]
Expand Down Expand Up @@ -290,7 +290,7 @@ md"## Exercise 2: Functions

# ╔═╡ dabfa315-fa26-4056-8b19-eaab8322db82
task(
"Implement a function `smaller(a, b)` which returns `a` if `a ≤ b` and `b` if `b < a`."
"Implement a function `smaller(a, b)` which returns `a` if `a ≤ b` and `b` if `b < a`.", 0.5
)

# ╔═╡ 49e6ab33-9452-4dc1-ac59-d47e70c325a5
Expand Down Expand Up @@ -335,7 +335,7 @@ md"### Exercise 2.2 – Loops"

# ╔═╡ 3039f9f1-9077-4050-b0d6-c404612d2e38
task(
"Write a function `my_sum` that computes the sum of all elements in a vector **using a for-loop**.",
"Write a function `my_sum` that computes the sum of all elements in a vector **using a for-loop**.", 0.5
)

# ╔═╡ f54461c4-392c-4a83-933c-d30a41ce4e0e
Expand Down Expand Up @@ -379,7 +379,7 @@ task(
md"""Write a function `my_powers(x, ymax)` that returns a vector of numbers $x^y$ for all $y$ from 1 to $y_{max}$:
$\left[ x^1, x^2, \ldots, x^{y_{max}}\right]$
""",
""", 0.5
)

# ╔═╡ af9b11ed-bb17-4ff3-a8f8-057f4777e5f9
Expand Down Expand Up @@ -636,7 +636,7 @@ task(
1. A function `transform` implementing standardization with the mean and standard deviation of `data`
2. A function `inverse_transform` implementing the inverse of standardization with the mean and standard deviation of `data`
",
3,
2,
)

# ╔═╡ cce72fb1-b694-4b84-9cc6-e209acd398db
Expand Down Expand Up @@ -704,7 +704,7 @@ end

# ╔═╡ edb7814a-eddf-4c87-8857-19bb0a0c0241
md"""# Feedback
This is the third iteration of the *"Julia Programming for ML"* class. Please help us make the course better!
This is the fourth iteration of the *"Julia Programming for ML"* class. Please help us make the course better!
You can write whatever you want in the following string. Feel free to add or delete whatever you want.
"""
Expand All @@ -731,23 +731,23 @@ PlutoTeachingTools = "661c6b06-c737-4d37-b85c-46df65de6f69"
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
[compat]
PlutoTeachingTools = "~0.2.14"
PlutoUI = "~0.7.58"
PlutoTeachingTools = "~0.3.0"
PlutoUI = "~0.7.60"
"""

# ╔═╡ 00000000-0000-0000-0000-000000000002
PLUTO_MANIFEST_TOML_CONTENTS = """
# This file is machine-generated - editing it directly is not advised
julia_version = "1.10.2"
julia_version = "1.10.5"
manifest_format = "2.0"
project_hash = "e6be6d6092fa27476d9915c9c511265bd955313b"
project_hash = "3aa1c46444f213b7ba6c7ec96dab56bb9cb6a21b"
[[deps.AbstractPlutoDingetjes]]
deps = ["Pkg"]
git-tree-sha1 = "0f748c81756f2e5e6854298f11ad8b2dfae6911a"
git-tree-sha1 = "6e1d2a35f2f90a4bc7c2ed98079b2ba09c35b83a"
uuid = "6e696c72-6542-2067-7265-42206c756150"
version = "1.3.0"
version = "1.3.2"
[[deps.ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
Expand All @@ -761,20 +761,20 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[deps.CodeTracking]]
deps = ["InteractiveUtils", "UUIDs"]
git-tree-sha1 = "c0216e792f518b39b22212127d4a84dc31e4e386"
git-tree-sha1 = "7eee164f122511d3e4e1ebadb7956939ea7e1c77"
uuid = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"
version = "1.3.5"
version = "1.3.6"
[[deps.ColorTypes]]
deps = ["FixedPointNumbers", "Random"]
git-tree-sha1 = "eb7f0f8307f71fac7c606984ea5fb2817275d6e4"
git-tree-sha1 = "b10d0b65641d57b8b4d5e234446582de5047050d"
uuid = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
version = "0.11.4"
version = "0.11.5"
[[deps.CompilerSupportLibraries_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
version = "1.1.0+0"
version = "1.1.1+0"
[[deps.Dates]]
deps = ["Printf"]
Expand All @@ -794,14 +794,14 @@ uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
[[deps.FixedPointNumbers]]
deps = ["Statistics"]
git-tree-sha1 = "335bfdceacc84c5cdf16aadc768aa5ddfc5383cc"
git-tree-sha1 = "05882d6995ae5c12bb5f36dd2ed3f61c98cbb172"
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
version = "0.8.4"
version = "0.8.5"
[[deps.Format]]
git-tree-sha1 = "f3cf88025f6d03c194d73f5d13fee9004a108329"
git-tree-sha1 = "9c68794ef81b08086aeb32eeaf33531668d5f5fc"
uuid = "1fa38f19-a742-5d3f-a2b9-30dd87b9d5f8"
version = "1.3.6"
version = "1.3.7"
[[deps.Hyperscript]]
deps = ["Test"]
Expand All @@ -817,9 +817,9 @@ version = "0.9.5"
[[deps.IOCapture]]
deps = ["Logging", "Random"]
git-tree-sha1 = "8b72179abc660bfab5e28472e019392b97d0985c"
git-tree-sha1 = "b6d6bfdd7ce25b0f9b2f6b3dd56b2673a66c8770"
uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
version = "0.2.4"
version = "0.2.5"
[[deps.InteractiveUtils]]
deps = ["Markdown"]
Expand All @@ -833,9 +833,9 @@ version = "0.21.4"
[[deps.JuliaInterpreter]]
deps = ["CodeTracking", "InteractiveUtils", "Random", "UUIDs"]
git-tree-sha1 = "7b762d81887160169ddfc93a47e5fd7a6a3e78ef"
git-tree-sha1 = "2984284a8abcfcc4784d95a9e2ea4e352dd8ede7"
uuid = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"
version = "0.9.29"
version = "0.9.36"
[[deps.LaTeXStrings]]
git-tree-sha1 = "50901ebc375ed41dbf8058da26f9de442febbbec"
Expand All @@ -844,16 +844,18 @@ version = "1.3.1"
[[deps.Latexify]]
deps = ["Format", "InteractiveUtils", "LaTeXStrings", "MacroTools", "Markdown", "OrderedCollections", "Requires"]
git-tree-sha1 = "cad560042a7cc108f5a4c24ea1431a9221f22c1b"
git-tree-sha1 = "ce5f5621cac23a86011836badfedf664a612cee4"
uuid = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
version = "0.16.2"
version = "0.16.5"
[deps.Latexify.extensions]
DataFramesExt = "DataFrames"
SparseArraysExt = "SparseArrays"
SymEngineExt = "SymEngine"
[deps.Latexify.weakdeps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8"
[[deps.LibCURL]]
Expand Down Expand Up @@ -892,9 +894,9 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
[[deps.LoweredCodeUtils]]
deps = ["JuliaInterpreter"]
git-tree-sha1 = "31e27f0b0bf0df3e3e951bfcc43fe8c730a219f6"
git-tree-sha1 = "c2b5e92eaf5101404a58ce9c6083d595472361d6"
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b"
version = "2.4.5"
version = "3.0.2"
[[deps.MIMEs]]
git-tree-sha1 = "65f28ad4b594aebe22157d6fac869786a255b7eb"
Expand Down Expand Up @@ -961,16 +963,16 @@ uuid = "0ff47ea0-7a50-410d-8455-4348d5de0420"
version = "0.1.6"
[[deps.PlutoTeachingTools]]
deps = ["Downloads", "HypertextLiteral", "LaTeXStrings", "Latexify", "Markdown", "PlutoLinks", "PlutoUI", "Random"]
git-tree-sha1 = "89f57f710cc121a7f32473791af3d6beefc59051"
deps = ["Downloads", "HypertextLiteral", "Latexify", "Markdown", "PlutoLinks", "PlutoUI"]
git-tree-sha1 = "e2593782a6b53dc5176058d27e20387a0576a59e"
uuid = "661c6b06-c737-4d37-b85c-46df65de6f69"
version = "0.2.14"
version = "0.3.0"
[[deps.PlutoUI]]
deps = ["AbstractPlutoDingetjes", "Base64", "ColorTypes", "Dates", "FixedPointNumbers", "Hyperscript", "HypertextLiteral", "IOCapture", "InteractiveUtils", "JSON", "Logging", "MIMEs", "Markdown", "Random", "Reexport", "URIs", "UUIDs"]
git-tree-sha1 = "71a22244e352aa8c5f0f2adde4150f62368a3f2e"
git-tree-sha1 = "eba4810d5e6a01f612b948c9fa94f905b49087b0"
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
version = "0.7.58"
version = "0.7.60"
[[deps.PrecompileTools]]
deps = ["Preferences"]
Expand Down Expand Up @@ -1008,10 +1010,10 @@ uuid = "ae029012-a4dd-5104-9daa-d747884805df"
version = "1.3.0"
[[deps.Revise]]
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "Pkg", "REPL", "Requires", "UUIDs", "Unicode"]
git-tree-sha1 = "12aa2d7593df490c407a3bbd8b86b8b515017f3e"
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "REPL", "Requires", "UUIDs", "Unicode"]
git-tree-sha1 = "0a20a01fbb3a9531f3325a94b6dcf95c404a1658"
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe"
version = "3.5.14"
version = "3.6.0"
[[deps.SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Expand Down Expand Up @@ -1053,9 +1055,9 @@ deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[[deps.Tricks]]
git-tree-sha1 = "eae1bb484cd63b36999ee58be2de6c178105112f"
git-tree-sha1 = "7822b97e99a1672bfb1b49b668a6d46d58d8cbcb"
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
version = "0.1.8"
version = "0.1.9"
[[deps.URIs]]
git-tree-sha1 = "67db6cc7b3821e19ebe75791a9dd19c9b1188f2b"
Expand All @@ -1077,7 +1079,7 @@ version = "1.2.13+1"
[[deps.libblastrampoline_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
version = "5.8.0+1"
version = "5.11.0+0"
[[deps.nghttp2_jll]]
deps = ["Artifacts", "Libdl"]
Expand Down
Loading

0 comments on commit a11866e

Please sign in to comment.