diff --git a/dsm020-cw2.ipynb b/dsm020-cw2.ipynb index a45cba7cf1b1ad066744c979426fdbc8e502c07b..27f31f16b7740ff223be3acbdf612c66b51a900c 100644 --- a/dsm020-cw2.ipynb +++ b/dsm020-cw2.ipynb @@ -206,7 +206,9 @@ "cell_type": "code", "execution_count": 5, "id": "7293fe1c-b150-4107-8e91-8c7aa0009bd4", - "metadata": {}, + "metadata": { + "scrolled": true + }, "outputs": [ { "name": "stdout", @@ -1091,7 +1093,7 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": 34, "id": "383ef232-6bbd-459a-a0dd-2370e934cb6d", "metadata": { "scrolled": true @@ -1295,7 +1297,9 @@ "\n", "Following data preprocessing, this study addressed the issue of class imbalance using the Synthetic Minority Over-sampling Technique (SMOTE) (Imbalanced-learn, n.d.). The dataset is divided into training and test sets, with SMOTE applied only to the training set to prevent data leakage. This results in two versions of the training data: one with SMOTE and one without.\n", "\n", - "Logistic Regression is trained on both versions of the training set using the built-in classification algorithm from Scikit-learn (Scikit-learn, n.d.), with the number of epochs set to the default value of 100 and L2 penalty. For evaluation, only out-of-sample (OOS) results are reported." + "Logistic Regression is trained on both versions of the training set using the built-in classification algorithm from Scikit-learn (Scikit-learn, n.d.), with the number of epochs set to the default value of 100 and L2 penalty. For evaluation, only out-of-sample (OOS) results are reported.\n", + "\n", + "The experiment was conducted locally on a Mac M1 (2020)." ] }, { @@ -1572,7 +1576,7 @@ }, { "cell_type": "code", - "execution_count": 92, + "execution_count": 50, "id": "90150dce-b9eb-4642-bc87-5b7feedd7466", "metadata": {}, "outputs": [ @@ -1695,7 +1699,7 @@ "text": [ "......\n", "----------------------------------------------------------------------\n", - "Ran 6 tests in 0.012s\n", + "Ran 6 tests in 0.006s\n", "\n", "OK\n" ] @@ -1923,7 +1927,7 @@ "text": [ "......\n", "----------------------------------------------------------------------\n", - "Ran 6 tests in 0.008s\n", + "Ran 6 tests in 0.007s\n", "\n", "OK\n" ]