Skip to content

Commit 312e18d

Browse files
committed
remove the emojis
1 parent de41611 commit 312e18d

10 files changed

Lines changed: 38 additions & 40 deletions

‎notebooks/Notebook_2/Notebook_2b_Model_Selection.ipynb‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@
327327
"instead of trying everything,\n",
328328
"we **follow the slope of the loss function**.\n",
329329
"\n",
330-
"This leads to…\n",
331-
"👉 Gradient Descent\n"
330+
"This leads to **Gradient Descent**.\n"
332331
]
333332
},
334333
{
@@ -4897,7 +4896,7 @@
48974896
"id": "fz4kIYpnASx4"
48984897
},
48994898
"source": [
4900-
"### ✏️ Additional Questions"
4899+
"### Additional Questions"
49014900
]
49024901
},
49034902
{
@@ -4927,16 +4926,16 @@
49274926
"source": [
49284927
"**Challenge 2.**\n",
49294928
"\n",
4930-
"1️⃣ Why is a model that perfectly fits training data *not always good*?\n",
4929+
"1. Why is a model that perfectly fits training data *not always good*?\n",
49314930
"\n",
4932-
"2️⃣ Where do you see “overfitting” in real life?\n",
4931+
"2. Where do you see “overfitting” in real life?\n",
49334932
"Examples:\n",
49344933
"\n",
49354934
"- memorizing exam answers vs understanding\n",
49364935
"- overtraining in sports\n",
49374936
"- overly tuned rules or policies\n",
49384937
"\n",
4939-
"3️⃣ Why can’t we judge a model using only training error?\n"
4938+
"3. Why can’t we judge a model using only training error?\n"
49404939
]
49414940
},
49424941
{

‎notebooks/Notebook_2/Notebook_2b_Model_Selection.py‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ def plot_grid_search_over_time_gif(
239239
# instead of trying everything,
240240
# we **follow the slope of the loss function**.
241241
#
242-
# This leads to…
243-
# 👉 Gradient Descent
242+
# This leads to **Gradient Descent**.
244243
#
245244

246245
# %% [markdown] id="vs3Yvhn04l6R"
@@ -1307,7 +1306,7 @@ def validation_curve(max_degree=15):
13071306
#
13081307

13091308
# %% [markdown] id="fz4kIYpnASx4"
1310-
# ### ✏️ Additional Questions
1309+
# ### Additional Questions
13111310

13121311
# %% [markdown] id="mPeGKp8BXdm7"
13131312
# **Challenge 1.**
@@ -1323,16 +1322,16 @@ def validation_curve(max_degree=15):
13231322
# %% [markdown] id="79-Rqt9v9wfA"
13241323
# **Challenge 2.**
13251324
#
1326-
# 1️⃣ Why is a model that perfectly fits training data *not always good*?
1325+
# 1. Why is a model that perfectly fits training data *not always good*?
13271326
#
1328-
# 2️⃣ Where do you see “overfitting” in real life?
1327+
# 2. Where do you see “overfitting” in real life?
13291328
# Examples:
13301329
#
13311330
# - memorizing exam answers vs understanding
13321331
# - overtraining in sports
13331332
# - overly tuned rules or policies
13341333
#
1335-
# 3️⃣ Why can’t we judge a model using only training error?
1334+
# 3. Why can’t we judge a model using only training error?
13361335
#
13371336

13381337
# %% [markdown] id="VP9xE6MYAxeS"

‎notebooks/Notebook_3/Notebook_3b_Statistics_1.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
"\n",
483483
"**Back to the penguins.** Suppose our data give a 95% confidence interval of $[750\\text{ g},\\ 1050\\text{ g}]$ for the difference in mean body mass between Gentoo and Adelie penguins. This says that the values between 750 g and 1050 g are all plausible estimates of the true difference.\n",
484484
"\n",
485-
"> 💡 **CIs and p-values are two views of the same evidence.** A 95% confidence interval that excludes the null value corresponds to a p-value below $\\alpha = 0.05$ (indeed, $95\\%=0.95=1-0.05=1-\\alpha)$). The confidence interval is often more informative, though, because it shows not just *whether* there is a difference but also *how big* it plausibly is.\n"
485+
"> **CIs and p-values are two views of the same evidence.** A 95% confidence interval that excludes the null value corresponds to a p-value below $\\alpha = 0.05$ (indeed, $95\\%=0.95=1-0.05=1-\\alpha)$). The confidence interval is often more informative, though, because it shows not just *whether* there is a difference but also *how big* it plausibly is.\n"
486486
]
487487
},
488488
{

‎notebooks/Notebook_3/Notebook_3b_Statistics_1.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def show_widget_or_fallback(widget_fn, fallback_fn):
283283
#
284284
# **Back to the penguins.** Suppose our data give a 95% confidence interval of $[750\text{ g},\ 1050\text{ g}]$ for the difference in mean body mass between Gentoo and Adelie penguins. This says that the values between 750 g and 1050 g are all plausible estimates of the true difference.
285285
#
286-
# > 💡 **CIs and p-values are two views of the same evidence.** A 95% confidence interval that excludes the null value corresponds to a p-value below $\alpha = 0.05$ (indeed, $95\%=0.95=1-0.05=1-\alpha)$). The confidence interval is often more informative, though, because it shows not just *whether* there is a difference but also *how big* it plausibly is.
286+
# > **CIs and p-values are two views of the same evidence.** A 95% confidence interval that excludes the null value corresponds to a p-value below $\alpha = 0.05$ (indeed, $95\%=0.95=1-0.05=1-\alpha)$). The confidence interval is often more informative, though, because it shows not just *whether* there is a difference but also *how big* it plausibly is.
287287
#
288288

289289
# %% [markdown] id="wMvSvNq6Pxpm"

‎notebooks/Notebook_3/Notebook_3c_Statistics_2.ipynb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,15 +836,15 @@
836836
"id": "ex-diabetes-dataset-inference"
837837
},
838838
"source": [
839-
"## 🧪 Diabetes Dataset Inference Exercises\n",
839+
"## Diabetes Dataset Inference Exercises\n",
840840
"\n",
841841
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/nerdslab/learningfromdata-course/blob/main/notebooks/Notebook_3/Notebook_3c_Statistics_2.ipynb#scrollTo=ex-diabetes-dataset-inference)\n",
842842
"\n",
843843
"You will now apply hypothesis testing and resampling methods to the Diabetes dataset.\n",
844844
"\n",
845845
"---\n",
846846
"\n",
847-
"### 🔎 Exercise 1 — Two-Group Comparison (Welch t-test)\n",
847+
"### Exercise 1 — Two-Group Comparison (Welch t-test)\n",
848848
"\n",
849849
"We split patients into:\n",
850850
"\n",
@@ -865,7 +865,7 @@
865865
"\n",
866866
"---\n",
867867
"\n",
868-
"### 📊 Exercise 2 — ANOVA Across BMI Quartiles\n",
868+
"### Exercise 2 — ANOVA Across BMI Quartiles\n",
869869
"\n",
870870
"We compared 4 BMI groups using ANOVA.\n",
871871
"\n",
@@ -880,7 +880,7 @@
880880
"\n",
881881
"---\n",
882882
"\n",
883-
"### 🎲 Exercise 3 — Permutation Testing\n",
883+
"### Exercise 3 — Permutation Testing\n",
884884
"\n",
885885
"Compare:\n",
886886
"\n",
@@ -895,7 +895,7 @@
895895
"\n",
896896
"---\n",
897897
"\n",
898-
"### 🧠 Final Reflection\n",
898+
"### Final Reflection\n",
899899
"\n",
900900
"Write a short paragraph:\n",
901901
"\n",

‎notebooks/Notebook_3/Notebook_3c_Statistics_2.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,15 @@ def power_widget(widgets):
465465
#
466466

467467
# %% [markdown] id="ex-diabetes-dataset-inference"
468-
# ## 🧪 Diabetes Dataset Inference Exercises
468+
# ## Diabetes Dataset Inference Exercises
469469
#
470470
# [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/nerdslab/learningfromdata-course/blob/main/notebooks/Notebook_3/Notebook_3c_Statistics_2.ipynb#scrollTo=ex-diabetes-dataset-inference)
471471
#
472472
# You will now apply hypothesis testing and resampling methods to the Diabetes dataset.
473473
#
474474
# ---
475475
#
476-
# ### 🔎 Exercise 1 — Two-Group Comparison (Welch t-test)
476+
# ### Exercise 1 — Two-Group Comparison (Welch t-test)
477477
#
478478
# We split patients into:
479479
#
@@ -494,7 +494,7 @@ def power_widget(widgets):
494494
#
495495
# ---
496496
#
497-
# ### 📊 Exercise 2 — ANOVA Across BMI Quartiles
497+
# ### Exercise 2 — ANOVA Across BMI Quartiles
498498
#
499499
# We compared 4 BMI groups using ANOVA.
500500
#
@@ -509,7 +509,7 @@ def power_widget(widgets):
509509
#
510510
# ---
511511
#
512-
# ### 🎲 Exercise 3 — Permutation Testing
512+
# ### Exercise 3 — Permutation Testing
513513
#
514514
# Compare:
515515
#
@@ -524,7 +524,7 @@ def power_widget(widgets):
524524
#
525525
# ---
526526
#
527-
# ### 🧠 Final Reflection
527+
# ### Final Reflection
528528
#
529529
# Write a short paragraph:
530530
#

‎notebooks/Notebook_4/Notebook_4b_Classification.ipynb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@
11261126
"id": "OJmb91Qkhdke"
11271127
},
11281128
"source": [
1129-
"💥 **Challenge:**\n",
1129+
"**Challenge:**\n",
11301130
"\n",
11311131
"> (1) Which $g$'s are \"good\" functions to use for our purposes? What properties do we desire for a \"good\" $g$? What might complicate our problem when trying to solve for $\\beta$?\n",
11321132
"\n",
@@ -2634,7 +2634,7 @@
26342634
"id": "c9sATlc2AOr5"
26352635
},
26362636
"source": [
2637-
"💥 **Challenge:**\n",
2637+
"**Challenge:**\n",
26382638
"\n",
26392639
"Discuss what you can observe from the pairplot for this dataset? Which features appear salient for classification?"
26402640
]
@@ -4123,7 +4123,7 @@
41234123
"id": "i63GQeRFI898"
41244124
},
41254125
"source": [
4126-
"💥 **Challenge:**\n",
4126+
"**Challenge:**\n",
41274127
"\n",
41284128
"What's happening in the example above? What are two ways that you could try to correct the issue?"
41294129
]
@@ -4351,7 +4351,7 @@
43514351
"id": "OzSgkBDI0AtG"
43524352
},
43534353
"source": [
4354-
"💥 **Challenge:**\n",
4354+
"**Challenge:**\n",
43554355
"\n",
43564356
"1. Create a set of synthetic experiments to explore how (at least three) different rebalancing approaches work for: (i) different levels of imbalance, (ii) different amounts of noise, and (iii) across different types of data (linear vs nonlinearly separable etc).\n",
43574357
"\n",
@@ -4579,7 +4579,7 @@
45794579
"id": "mnX4ZPTP3RYW"
45804580
},
45814581
"source": [
4582-
"💥 **Discussion:**\n",
4582+
"**Discussion:**\n",
45834583
"\n",
45844584
"> Add your discussion here."
45854585
]

‎notebooks/Notebook_4/Notebook_4b_Classification.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def plot_screening_decision_boundary(model, X, y, ax, title):
629629
# Where $x_i$ are the inputs or features for every $i^{th}$ data point, and $y_i$ are the corresponding outputs or labels. In general, we can simplify this problem and say that $p=0.5$ and threshold our predictions accordingly.
630630

631631
# %% [markdown] id="OJmb91Qkhdke"
632-
# 💥 **Challenge:**
632+
# **Challenge:**
633633
#
634634
# > (1) Which $g$'s are "good" functions to use for our purposes? What properties do we desire for a "good" $g$? What might complicate our problem when trying to solve for $\beta$?
635635
#
@@ -927,7 +927,7 @@ def plot_sigmoid_threshold(threshold=0.5):
927927

928928

929929
# %% [markdown] id="c9sATlc2AOr5"
930-
# 💥 **Challenge:**
930+
# **Challenge:**
931931
#
932932
# Discuss what you can observe from the pairplot for this dataset? Which features appear salient for classification?
933933

@@ -1307,7 +1307,7 @@ def train_test_split_with_probablity(X, Y, train_size=250, balanced=True):
13071307
fig.tight_layout()
13081308

13091309
# %% [markdown] id="i63GQeRFI898"
1310-
# 💥 **Challenge:**
1310+
# **Challenge:**
13111311
#
13121312
# What's happening in the example above? What are two ways that you could try to correct the issue?
13131313

@@ -1375,7 +1375,7 @@ def train_test_split_with_probablity(X, Y, train_size=250, balanced=True):
13751375
# add your code here
13761376

13771377
# %% [markdown] id="OzSgkBDI0AtG"
1378-
# 💥 **Challenge:**
1378+
# **Challenge:**
13791379
#
13801380
# 1. Create a set of synthetic experiments to explore how (at least three) different rebalancing approaches work for: (i) different levels of imbalance, (ii) different amounts of noise, and (iii) across different types of data (linear vs nonlinearly separable etc).
13811381
#
@@ -1455,7 +1455,7 @@ def ratio_func(y, multiplier, minority_class):
14551455

14561456

14571457
# %% [markdown] id="mnX4ZPTP3RYW"
1458-
# 💥 **Discussion:**
1458+
# **Discussion:**
14591459
#
14601460
# > Add your discussion here.
14611461

‎notebooks/Notebook_4/Notebook_4c_PyTorch_Model.ipynb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
"id": "BkyNqg2DOL6w"
341341
},
342342
"source": [
343-
"💥 **Challenge:**\n",
343+
"**Challenge:**\n",
344344
"\n",
345345
"Write out an expression for the output of the MLP in the figure above. Make clear the dimension of all weight matrices, and assume that a general activation function $\\sigma()$ is used at each hidden layer.\n"
346346
]
@@ -486,7 +486,7 @@
486486
"id": "3IU2V2kvVHst"
487487
},
488488
"source": [
489-
"💥 **Challenge:**\n",
489+
"**Challenge:**\n",
490490
"Try some different hyperparameters and test different architectures. Report the accuracies on the train and test sets for at least three different MLP models.\n"
491491
]
492492
},
@@ -2402,7 +2402,7 @@
24022402
"id": "NQaJa_mLVlq0"
24032403
},
24042404
"source": [
2405-
"💥 **Challenge:**\n",
2405+
"**Challenge:**\n",
24062406
"Incorporate different types of augmentations into your model, discuss how different augmentations impact the accuracy on the test data.\n",
24072407
"\n",
24082408
">"

‎notebooks/Notebook_4/Notebook_4c_PyTorch_Model.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
#
133133

134134
# %% [markdown] id="BkyNqg2DOL6w"
135-
# 💥 **Challenge:**
135+
# **Challenge:**
136136
#
137137
# Write out an expression for the output of the MLP in the figure above. Make clear the dimension of all weight matrices, and assume that a general activation function $\sigma()$ is used at each hidden layer.
138138
#
@@ -181,7 +181,7 @@
181181
print("Test accuracy:", clf.score(test_imgs, test_labels))
182182

183183
# %% [markdown] id="3IU2V2kvVHst"
184-
# 💥 **Challenge:**
184+
# **Challenge:**
185185
# Try some different hyperparameters and test different architectures. Report the accuracies on the train and test sets for at least three different MLP models.
186186
#
187187

@@ -919,7 +919,7 @@ def get_model_with_dropout():
919919
print("Test acc (Early stopping): %.2f" % history["test_acc"][early_stop_epoch])
920920

921921
# %% [markdown] id="NQaJa_mLVlq0"
922-
# 💥 **Challenge:**
922+
# **Challenge:**
923923
# Incorporate different types of augmentations into your model, discuss how different augmentations impact the accuracy on the test data.
924924
#
925925
# >

0 commit comments

Comments
 (0)