diff --git a/02_activities/assignments/assignment_1.ipynb b/02_activities/assignments/assignment_1.ipynb index e9ecb93f..0ca7965b 100644 --- a/02_activities/assignments/assignment_1.ipynb +++ b/02_activities/assignments/assignment_1.ipynb @@ -231,17 +231,6 @@ "(iii) A second essential step is to set a random seed. Do so below (Hint: use the random.seed function). Why is setting a seed important? Is the particular seed value important? Why or why not?" ] }, - { - "cell_type": "code", - "execution_count": 59, - "id": "5ef2d5ad", - "metadata": {}, - "outputs": [], - "source": [ - "# Do not touch\n", - "random.seed(123)" - ] - }, { "cell_type": "markdown", "id": "f0676c21", @@ -262,15 +251,15 @@ }, { "cell_type": "code", - "execution_count": 31, - "id": "78a88a6e", + "execution_count": null, + "id": "72c101f2", "metadata": {}, "outputs": [], "source": [ + "# Do not touch\n", + "np.random.seed(123)\n", "# Create a random vector of True and False values to split the data\n", - "split = np.random.choice([True, False], size=len(predictors_standardized), replace=True, p=[0.75, 0.25])\n", - "\n", - "# Your code here..." + "split = np.random.choice([True, False], size=len(predictors_standardized), replace=True, p=[0.75, 0.25])" ] }, {