Skip to content

Commit d68118a

Browse files
committed
Created using Colaboratory
1 parent 9316eb7 commit d68118a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Week10/Week10Tutorial2.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"authorship_tag": "ABX9TyNk3lwH1I5UBvtUCfCy6G+K"
7+
"authorship_tag": "ABX9TyOp9OBOD7nMYmPOkl843SEX"
88
},
99
"kernelspec": {
1010
"name": "python3",
@@ -209,10 +209,10 @@
209209
"cell_type": "code",
210210
"metadata": {
211211
"id": "0dr0odDsd_Z8",
212-
"outputId": "9f8abf66-c4e4-42d4-a0aa-5816dd8cdb69",
213212
"colab": {
214213
"base_uri": "https://localhost:8080/"
215-
}
214+
},
215+
"outputId": "9f8abf66-c4e4-42d4-a0aa-5816dd8cdb69"
216216
},
217217
"source": [
218218
"print(resps_train.shape)\n",
@@ -276,11 +276,11 @@
276276
],
277277
"metadata": {
278278
"id": "89RmUIjlYOSS",
279-
"outputId": "e9ec40c5-3235-40f1-e75f-721f700c5946",
280279
"colab": {
281280
"base_uri": "https://localhost:8080/",
282281
"height": 246
283-
}
282+
},
283+
"outputId": "e9ec40c5-3235-40f1-e75f-721f700c5946"
284284
},
285285
"execution_count": 1,
286286
"outputs": [
@@ -480,7 +480,7 @@
480480
"cell_type": "code",
481481
"source": [
482482
"# Ridge/L2 regularization\n",
483-
"l2_alphas = [0.01, 0.1, 1, 10, 100]\n",
483+
"l2_alphas = [1, 10, 100, 1000, 10000, 100000]\n",
484484
"\n",
485485
"ridge_models = {}\n",
486486
"ridge_train_r2s = np.zeros((len(l2_alphas)))\n",
@@ -590,7 +590,7 @@
590590
"cell_type": "code",
591591
"source": [
592592
"# Lasso/L1 regularization\n",
593-
"l1_alphas = [0.0005, 0.001, 0.005, 0.01, 0.1]\n",
593+
"l1_alphas = [0.01, 0.1, 1, 10]\n",
594594
"\n",
595595
"lasso_models = {}\n",
596596
"lasso_train_r2s = np.zeros((len(l1_alphas)))\n",

0 commit comments

Comments
 (0)