|
4 | 4 | "metadata": { |
5 | 5 | "colab": { |
6 | 6 | "provenance": [], |
7 | | - "authorship_tag": "ABX9TyNk3lwH1I5UBvtUCfCy6G+K" |
| 7 | + "authorship_tag": "ABX9TyOp9OBOD7nMYmPOkl843SEX" |
8 | 8 | }, |
9 | 9 | "kernelspec": { |
10 | 10 | "name": "python3", |
|
209 | 209 | "cell_type": "code", |
210 | 210 | "metadata": { |
211 | 211 | "id": "0dr0odDsd_Z8", |
212 | | - "outputId": "9f8abf66-c4e4-42d4-a0aa-5816dd8cdb69", |
213 | 212 | "colab": { |
214 | 213 | "base_uri": "https://localhost:8080/" |
215 | | - } |
| 214 | + }, |
| 215 | + "outputId": "9f8abf66-c4e4-42d4-a0aa-5816dd8cdb69" |
216 | 216 | }, |
217 | 217 | "source": [ |
218 | 218 | "print(resps_train.shape)\n", |
|
276 | 276 | ], |
277 | 277 | "metadata": { |
278 | 278 | "id": "89RmUIjlYOSS", |
279 | | - "outputId": "e9ec40c5-3235-40f1-e75f-721f700c5946", |
280 | 279 | "colab": { |
281 | 280 | "base_uri": "https://localhost:8080/", |
282 | 281 | "height": 246 |
283 | | - } |
| 282 | + }, |
| 283 | + "outputId": "e9ec40c5-3235-40f1-e75f-721f700c5946" |
284 | 284 | }, |
285 | 285 | "execution_count": 1, |
286 | 286 | "outputs": [ |
|
480 | 480 | "cell_type": "code", |
481 | 481 | "source": [ |
482 | 482 | "# 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", |
484 | 484 | "\n", |
485 | 485 | "ridge_models = {}\n", |
486 | 486 | "ridge_train_r2s = np.zeros((len(l2_alphas)))\n", |
|
590 | 590 | "cell_type": "code", |
591 | 591 | "source": [ |
592 | 592 | "# 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", |
594 | 594 | "\n", |
595 | 595 | "lasso_models = {}\n", |
596 | 596 | "lasso_train_r2s = np.zeros((len(l1_alphas)))\n", |
|
0 commit comments