Last active
October 8, 2020 21:06
-
-
Save plpxsk/e9040f42725322dfd2b86975e6ba5bbc to your computer and use it in GitHub Desktop.
Trying logistic regression example from https://pytorch-lightning-bolts.readthedocs.io/en/latest/classic_ml.html#logistic-regression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "lr.ipynb", | |
"provenance": [] | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"widgets": { | |
"application/vnd.jupyter.widget-state+json": { | |
"2206a1f442af4788b4daf882e9350498": { | |
"model_module": "@jupyter-widgets/controls", | |
"model_name": "HBoxModel", | |
"state": { | |
"_view_name": "HBoxView", | |
"_dom_classes": [], | |
"_model_name": "HBoxModel", | |
"_view_module": "@jupyter-widgets/controls", | |
"_model_module_version": "1.5.0", | |
"_view_count": null, | |
"_view_module_version": "1.5.0", | |
"box_style": "", | |
"layout": "IPY_MODEL_634c287236ff42e482db42e6b7b0e5f8", | |
"_model_module": "@jupyter-widgets/controls", | |
"children": [ | |
"IPY_MODEL_c508fc9cc1634f26adb683c2f1fb793e", | |
"IPY_MODEL_db5b22df077b421b81816873abdbf4e4" | |
] | |
} | |
}, | |
"634c287236ff42e482db42e6b7b0e5f8": { | |
"model_module": "@jupyter-widgets/base", | |
"model_name": "LayoutModel", | |
"state": { | |
"_view_name": "LayoutView", | |
"grid_template_rows": null, | |
"right": null, | |
"justify_content": null, | |
"_view_module": "@jupyter-widgets/base", | |
"overflow": null, | |
"_model_module_version": "1.2.0", | |
"_view_count": null, | |
"flex_flow": "row wrap", | |
"width": "100%", | |
"min_width": null, | |
"border": null, | |
"align_items": null, | |
"bottom": null, | |
"_model_module": "@jupyter-widgets/base", | |
"top": null, | |
"grid_column": null, | |
"overflow_y": null, | |
"overflow_x": null, | |
"grid_auto_flow": null, | |
"grid_area": null, | |
"grid_template_columns": null, | |
"flex": null, | |
"_model_name": "LayoutModel", | |
"justify_items": null, | |
"grid_row": null, | |
"max_height": null, | |
"align_content": null, | |
"visibility": null, | |
"align_self": null, | |
"height": null, | |
"min_height": null, | |
"padding": null, | |
"grid_auto_rows": null, | |
"grid_gap": null, | |
"max_width": null, | |
"order": null, | |
"_view_module_version": "1.2.0", | |
"grid_template_areas": null, | |
"object_position": null, | |
"object_fit": null, | |
"grid_auto_columns": null, | |
"margin": null, | |
"display": "inline-flex", | |
"left": null | |
} | |
}, | |
"c508fc9cc1634f26adb683c2f1fb793e": { | |
"model_module": "@jupyter-widgets/controls", | |
"model_name": "FloatProgressModel", | |
"state": { | |
"_view_name": "ProgressView", | |
"style": "IPY_MODEL_42566351291143069b5df54db616f4cd", | |
"_dom_classes": [], | |
"description": "Validation sanity check: ", | |
"_model_name": "FloatProgressModel", | |
"bar_style": "info", | |
"max": 1, | |
"_view_module": "@jupyter-widgets/controls", | |
"_model_module_version": "1.5.0", | |
"value": 0, | |
"_view_count": null, | |
"_view_module_version": "1.5.0", | |
"orientation": "horizontal", | |
"min": 0, | |
"description_tooltip": null, | |
"_model_module": "@jupyter-widgets/controls", | |
"layout": "IPY_MODEL_ea1a43c575ae4ce1b64b759bbdd51dc4" | |
} | |
}, | |
"db5b22df077b421b81816873abdbf4e4": { | |
"model_module": "@jupyter-widgets/controls", | |
"model_name": "HTMLModel", | |
"state": { | |
"_view_name": "HTMLView", | |
"style": "IPY_MODEL_d654245e3e194b8b85250488fffe463e", | |
"_dom_classes": [], | |
"description": "", | |
"_model_name": "HTMLModel", | |
"placeholder": "", | |
"_view_module": "@jupyter-widgets/controls", | |
"_model_module_version": "1.5.0", | |
"value": " 0/? [00:00<?, ?it/s]", | |
"_view_count": null, | |
"_view_module_version": "1.5.0", | |
"description_tooltip": null, | |
"_model_module": "@jupyter-widgets/controls", | |
"layout": "IPY_MODEL_d6a93312f3bb42ff93dc617e3a3b52f1" | |
} | |
}, | |
"42566351291143069b5df54db616f4cd": { | |
"model_module": "@jupyter-widgets/controls", | |
"model_name": "ProgressStyleModel", | |
"state": { | |
"_view_name": "StyleView", | |
"_model_name": "ProgressStyleModel", | |
"description_width": "initial", | |
"_view_module": "@jupyter-widgets/base", | |
"_model_module_version": "1.5.0", | |
"_view_count": null, | |
"_view_module_version": "1.2.0", | |
"bar_color": null, | |
"_model_module": "@jupyter-widgets/controls" | |
} | |
}, | |
"ea1a43c575ae4ce1b64b759bbdd51dc4": { | |
"model_module": "@jupyter-widgets/base", | |
"model_name": "LayoutModel", | |
"state": { | |
"_view_name": "LayoutView", | |
"grid_template_rows": null, | |
"right": null, | |
"justify_content": null, | |
"_view_module": "@jupyter-widgets/base", | |
"overflow": null, | |
"_model_module_version": "1.2.0", | |
"_view_count": null, | |
"flex_flow": null, | |
"width": null, | |
"min_width": null, | |
"border": null, | |
"align_items": null, | |
"bottom": null, | |
"_model_module": "@jupyter-widgets/base", | |
"top": null, | |
"grid_column": null, | |
"overflow_y": null, | |
"overflow_x": null, | |
"grid_auto_flow": null, | |
"grid_area": null, | |
"grid_template_columns": null, | |
"flex": "2", | |
"_model_name": "LayoutModel", | |
"justify_items": null, | |
"grid_row": null, | |
"max_height": null, | |
"align_content": null, | |
"visibility": null, | |
"align_self": null, | |
"height": null, | |
"min_height": null, | |
"padding": null, | |
"grid_auto_rows": null, | |
"grid_gap": null, | |
"max_width": null, | |
"order": null, | |
"_view_module_version": "1.2.0", | |
"grid_template_areas": null, | |
"object_position": null, | |
"object_fit": null, | |
"grid_auto_columns": null, | |
"margin": null, | |
"display": null, | |
"left": null | |
} | |
}, | |
"d654245e3e194b8b85250488fffe463e": { | |
"model_module": "@jupyter-widgets/controls", | |
"model_name": "DescriptionStyleModel", | |
"state": { | |
"_view_name": "StyleView", | |
"_model_name": "DescriptionStyleModel", | |
"description_width": "", | |
"_view_module": "@jupyter-widgets/base", | |
"_model_module_version": "1.5.0", | |
"_view_count": null, | |
"_view_module_version": "1.2.0", | |
"_model_module": "@jupyter-widgets/controls" | |
} | |
}, | |
"d6a93312f3bb42ff93dc617e3a3b52f1": { | |
"model_module": "@jupyter-widgets/base", | |
"model_name": "LayoutModel", | |
"state": { | |
"_view_name": "LayoutView", | |
"grid_template_rows": null, | |
"right": null, | |
"justify_content": null, | |
"_view_module": "@jupyter-widgets/base", | |
"overflow": null, | |
"_model_module_version": "1.2.0", | |
"_view_count": null, | |
"flex_flow": null, | |
"width": null, | |
"min_width": null, | |
"border": null, | |
"align_items": null, | |
"bottom": null, | |
"_model_module": "@jupyter-widgets/base", | |
"top": null, | |
"grid_column": null, | |
"overflow_y": null, | |
"overflow_x": null, | |
"grid_auto_flow": null, | |
"grid_area": null, | |
"grid_template_columns": null, | |
"flex": null, | |
"_model_name": "LayoutModel", | |
"justify_items": null, | |
"grid_row": null, | |
"max_height": null, | |
"align_content": null, | |
"visibility": null, | |
"align_self": null, | |
"height": null, | |
"min_height": null, | |
"padding": null, | |
"grid_auto_rows": null, | |
"grid_gap": null, | |
"max_width": null, | |
"order": null, | |
"_view_module_version": "1.2.0", | |
"grid_template_areas": null, | |
"object_position": null, | |
"object_fit": null, | |
"grid_auto_columns": null, | |
"margin": null, | |
"display": null, | |
"left": null | |
} | |
} | |
} | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "zTyHcXKW-CvB", | |
"outputId": "1b189521-0c72-425c-83fd-e4bfee606054", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 598 | |
} | |
}, | |
"source": [ | |
"! pip install pytorch-lightning-bolts" | |
], | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Requirement already satisfied: pytorch-lightning-bolts in /usr/local/lib/python3.6/dist-packages (0.2.2)\n", | |
"Requirement already satisfied: torch>=1.6 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning-bolts) (1.6.0+cu101)\n", | |
"Requirement already satisfied: pytorch-lightning>=0.9.0 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning-bolts) (0.10.0)\n", | |
"Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from torch>=1.6->pytorch-lightning-bolts) (1.18.5)\n", | |
"Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from torch>=1.6->pytorch-lightning-bolts) (0.18.2)\n", | |
"Requirement already satisfied: PyYAML>=5.1 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (5.3.1)\n", | |
"Requirement already satisfied: tqdm>=4.41.0 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (4.41.1)\n", | |
"Requirement already satisfied: fsspec>=0.8.0 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.8.3)\n", | |
"Requirement already satisfied: tensorboard>=2.2.0 in /usr/local/lib/python3.6/dist-packages (from pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (2.3.0)\n", | |
"Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (3.2.2)\n", | |
"Requirement already satisfied: grpcio>=1.24.3 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.32.0)\n", | |
"Requirement already satisfied: requests<3,>=2.21.0 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (2.23.0)\n", | |
"Requirement already satisfied: google-auth<2,>=1.6.3 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.17.2)\n", | |
"Requirement already satisfied: protobuf>=3.6.0 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (3.12.4)\n", | |
"Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.4.1)\n", | |
"Requirement already satisfied: werkzeug>=0.11.15 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.0.1)\n", | |
"Requirement already satisfied: absl-py>=0.4 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.10.0)\n", | |
"Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.7.0)\n", | |
"Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.15.0)\n", | |
"Requirement already satisfied: wheel>=0.26; python_version >= \"3\" in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.35.1)\n", | |
"Requirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.6/dist-packages (from tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (50.3.0)\n", | |
"Requirement already satisfied: importlib-metadata; python_version < \"3.8\" in /usr/local/lib/python3.6/dist-packages (from markdown>=2.6.8->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (2.0.0)\n", | |
"Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (3.0.4)\n", | |
"Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.24.3)\n", | |
"Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (2.10)\n", | |
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (2020.6.20)\n", | |
"Requirement already satisfied: cachetools<5.0,>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from google-auth<2,>=1.6.3->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (4.1.1)\n", | |
"Requirement already satisfied: rsa<5,>=3.1.4; python_version >= \"3\" in /usr/local/lib/python3.6/dist-packages (from google-auth<2,>=1.6.3->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (4.6)\n", | |
"Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.6/dist-packages (from google-auth<2,>=1.6.3->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.2.8)\n", | |
"Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.6/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (1.3.0)\n", | |
"Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/dist-packages (from importlib-metadata; python_version < \"3.8\"->markdown>=2.6.8->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (3.2.0)\n", | |
"Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.6/dist-packages (from rsa<5,>=3.1.4; python_version >= \"3\"->google-auth<2,>=1.6.3->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (0.4.8)\n", | |
"Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.6/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.2.0->pytorch-lightning>=0.9.0->pytorch-lightning-bolts) (3.1.0)\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "6BWw_9EW97qZ", | |
"outputId": "e760f5e0-9b3c-44a0-dd8e-c50f1560bc87", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 509, | |
"referenced_widgets": [ | |
"2206a1f442af4788b4daf882e9350498", | |
"634c287236ff42e482db42e6b7b0e5f8", | |
"c508fc9cc1634f26adb683c2f1fb793e", | |
"db5b22df077b421b81816873abdbf4e4", | |
"42566351291143069b5df54db616f4cd", | |
"ea1a43c575ae4ce1b64b759bbdd51dc4", | |
"d654245e3e194b8b85250488fffe463e", | |
"d6a93312f3bb42ff93dc617e3a3b52f1" | |
] | |
} | |
}, | |
"source": [ | |
"from sklearn.datasets import load_iris\n", | |
"from pl_bolts.models.regression import LogisticRegression\n", | |
"from pl_bolts.datamodules import SklearnDataModule\n", | |
"import pytorch_lightning as pl\n", | |
"\n", | |
"# use any numpy or sklearn dataset\n", | |
"X, y = load_iris(return_X_y=True)\n", | |
"dm = SklearnDataModule(X, y)\n", | |
"\n", | |
"# build model\n", | |
"model = LogisticRegression(input_dim=4, num_classes=3)\n", | |
"\n", | |
"# fit\n", | |
"trainer = pl.Trainer()#tpu_cores=8, precision=16)\n", | |
"trainer.fit(model, dm.train_dataloader(), dm.val_dataloader())\n", | |
"\n", | |
"trainer.test(test_dataloaders=dm.test_dataloader(batch_size=12))" | |
], | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"GPU available: False, used: False\n", | |
"TPU available: False, using: 0 TPU cores\n", | |
"\n", | |
" | Name | Type | Params\n", | |
"----------------------------------\n", | |
"0 | linear | Linear | 15 \n" | |
], | |
"name": "stderr" | |
}, | |
{ | |
"output_type": "display_data", | |
"data": { | |
"application/vnd.jupyter.widget-view+json": { | |
"model_id": "2206a1f442af4788b4daf882e9350498", | |
"version_minor": 0, | |
"version_major": 2 | |
}, | |
"text/plain": [ | |
"HBox(children=(FloatProgress(value=1.0, bar_style='info', description='Validation sanity check', layout=Layout…" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
} | |
}, | |
{ | |
"output_type": "error", | |
"ename": "TypeError", | |
"evalue": "ignored", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-4-8383dc031627>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 13\u001b[0m \u001b[0;31m# fit\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 14\u001b[0m \u001b[0mtrainer\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpl\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTrainer\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;31m#tpu_cores=8, precision=16)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 15\u001b[0;31m \u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfit\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmodel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdm\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain_dataloader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdm\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mval_dataloader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 16\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtest\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_dataloaders\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdm\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtest_dataloader\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbatch_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m12\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py\u001b[0m in \u001b[0;36mfit\u001b[0;34m(self, model, train_dataloader, val_dataloaders, datamodule)\u001b[0m\n\u001b[1;32m 452\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcall_hook\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'on_fit_start'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 453\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 454\u001b[0;31m \u001b[0mresults\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 455\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mteardown\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 456\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/accelerators/cpu_backend.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 45\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 46\u001b[0m \u001b[0;31m# train or test\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 47\u001b[0;31m \u001b[0mresults\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain_or_test\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 48\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresults\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 49\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/accelerators/base_accelerator.py\u001b[0m in \u001b[0;36mtrain_or_test\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 48\u001b[0m \u001b[0mresults\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_test\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 49\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 50\u001b[0;31m \u001b[0mresults\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 51\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresults\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 52\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py\u001b[0m in \u001b[0;36mtrain\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 474\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 475\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mtrain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 476\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_sanity_check\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_model\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 477\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 478\u001b[0m \u001b[0;31m# enable train mode\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py\u001b[0m in \u001b[0;36mrun_sanity_check\u001b[0;34m(self, ref_model)\u001b[0m\n\u001b[1;32m 664\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 665\u001b[0m \u001b[0;31m# run eval step\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 666\u001b[0;31m \u001b[0m_\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0meval_results\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_evaluation\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_mode\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmax_batches\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnum_sanity_val_batches\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 667\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 668\u001b[0m \u001b[0;31m# allow no returns from eval\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py\u001b[0m in \u001b[0;36mrun_evaluation\u001b[0;34m(self, test_mode, max_batches)\u001b[0m\n\u001b[1;32m 584\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 585\u001b[0m \u001b[0;31m# lightning module methods\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 586\u001b[0;31m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevaluation_loop\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevaluation_step\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtest_mode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_idx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdataloader_idx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 587\u001b[0m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevaluation_loop\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevaluation_step_end\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 588\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/evaluation_loop.py\u001b[0m in \u001b[0;36mevaluation_step\u001b[0;34m(self, test_mode, batch, batch_idx, dataloader_idx)\u001b[0m\n\u001b[1;32m 169\u001b[0m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtest_step\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 170\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 171\u001b[0;31m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maccelerator_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalidation_step\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 172\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 173\u001b[0m \u001b[0;31m# track batch size for weighted average\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pytorch_lightning/accelerators/cpu_backend.py\u001b[0m in \u001b[0;36mvalidation_step\u001b[0;34m(self, args)\u001b[0m\n\u001b[1;32m 61\u001b[0m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalidation_step\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 63\u001b[0;31m \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvalidation_step\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 64\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 65\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.6/dist-packages/pl_bolts/models/regression/logistic_regression.py\u001b[0m in \u001b[0;36mvalidation_step\u001b[0;34m(self, batch, batch_idx)\u001b[0m\n\u001b[1;32m 81\u001b[0m \u001b[0mx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mview\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msize\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 82\u001b[0m \u001b[0my_hat\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 83\u001b[0;31m \u001b[0macc\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0maccuracy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_hat\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 84\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;34m{\u001b[0m\u001b[0;34m'val_loss'\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mF\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcross_entropy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0my_hat\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'acc'\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0macc\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 85\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;31mTypeError\u001b[0m: 'module' object is not callable" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "Nl9ofrL1BemD" | |
}, | |
"source": [ | |
"# Environment" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "etrmcMkhBfjA", | |
"outputId": "492267f5-e099-4b97-e07c-d6821e38b7f4", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 1000 | |
} | |
}, | |
"source": [ | |
"! pip freeze" | |
], | |
"execution_count": 7, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"absl-py==0.10.0\n", | |
"alabaster==0.7.12\n", | |
"albumentations==0.1.12\n", | |
"altair==4.1.0\n", | |
"argon2-cffi==20.1.0\n", | |
"asgiref==3.2.10\n", | |
"astor==0.8.1\n", | |
"astropy==4.0.1.post1\n", | |
"astunparse==1.6.3\n", | |
"async-generator==1.10\n", | |
"atari-py==0.2.6\n", | |
"atomicwrites==1.4.0\n", | |
"attrs==20.2.0\n", | |
"audioread==2.1.8\n", | |
"autograd==1.3\n", | |
"Babel==2.8.0\n", | |
"backcall==0.2.0\n", | |
"beautifulsoup4==4.6.3\n", | |
"bleach==3.2.1\n", | |
"blis==0.4.1\n", | |
"bokeh==2.1.1\n", | |
"Bottleneck==1.3.2\n", | |
"branca==0.4.1\n", | |
"bs4==0.0.1\n", | |
"CacheControl==0.12.6\n", | |
"cachetools==4.1.1\n", | |
"catalogue==1.0.0\n", | |
"certifi==2020.6.20\n", | |
"cffi==1.14.3\n", | |
"chainer==7.4.0\n", | |
"chardet==3.0.4\n", | |
"click==7.1.2\n", | |
"cloudpickle==1.3.0\n", | |
"cmake==3.12.0\n", | |
"cmdstanpy==0.9.5\n", | |
"colorlover==0.3.0\n", | |
"community==1.0.0b1\n", | |
"contextlib2==0.5.5\n", | |
"convertdate==2.2.2\n", | |
"coverage==3.7.1\n", | |
"coveralls==0.5\n", | |
"crcmod==1.7\n", | |
"cufflinks==0.17.3\n", | |
"cvxopt==1.2.5\n", | |
"cvxpy==1.0.31\n", | |
"cycler==0.10.0\n", | |
"cymem==2.0.3\n", | |
"Cython==0.29.21\n", | |
"daft==0.0.4\n", | |
"dask==2.12.0\n", | |
"dataclasses==0.7\n", | |
"datascience==0.10.6\n", | |
"debugpy==1.0.0rc2\n", | |
"decorator==4.4.2\n", | |
"defusedxml==0.6.0\n", | |
"descartes==1.1.0\n", | |
"dill==0.3.2\n", | |
"distributed==1.25.3\n", | |
"Django==3.1.1\n", | |
"dlib==19.18.0\n", | |
"dm-tree==0.1.5\n", | |
"docopt==0.6.2\n", | |
"docutils==0.16\n", | |
"dopamine-rl==1.0.5\n", | |
"earthengine-api==0.1.236\n", | |
"easydict==1.9\n", | |
"ecos==2.0.7.post1\n", | |
"editdistance==0.5.3\n", | |
"en-core-web-sm==2.2.5\n", | |
"entrypoints==0.3\n", | |
"ephem==3.7.7.1\n", | |
"et-xmlfile==1.0.1\n", | |
"fa2==0.3.5\n", | |
"fancyimpute==0.4.3\n", | |
"fastai==1.0.61\n", | |
"fastdtw==0.3.4\n", | |
"fastprogress==1.0.0\n", | |
"fastrlock==0.5\n", | |
"fbprophet==0.7.1\n", | |
"feather-format==0.4.1\n", | |
"filelock==3.0.12\n", | |
"firebase-admin==4.4.0\n", | |
"fix-yahoo-finance==0.0.22\n", | |
"Flask==1.1.2\n", | |
"folium==0.8.3\n", | |
"fsspec==0.8.3\n", | |
"future==0.18.2\n", | |
"gast==0.3.3\n", | |
"GDAL==2.2.2\n", | |
"gdown==3.6.4\n", | |
"gensim==3.6.0\n", | |
"geographiclib==1.50\n", | |
"geopy==1.17.0\n", | |
"gin-config==0.3.0\n", | |
"glob2==0.7\n", | |
"google==2.0.3\n", | |
"google-api-core==1.16.0\n", | |
"google-api-python-client==1.7.12\n", | |
"google-auth==1.17.2\n", | |
"google-auth-httplib2==0.0.4\n", | |
"google-auth-oauthlib==0.4.1\n", | |
"google-cloud-bigquery==1.21.0\n", | |
"google-cloud-core==1.0.3\n", | |
"google-cloud-datastore==1.8.0\n", | |
"google-cloud-firestore==1.7.0\n", | |
"google-cloud-language==1.2.0\n", | |
"google-cloud-storage==1.18.1\n", | |
"google-cloud-translate==1.5.0\n", | |
"google-colab==1.0.0\n", | |
"google-pasta==0.2.0\n", | |
"google-resumable-media==0.4.1\n", | |
"googleapis-common-protos==1.52.0\n", | |
"googledrivedownloader==0.4\n", | |
"graphviz==0.10.1\n", | |
"grpcio==1.32.0\n", | |
"gspread==3.0.1\n", | |
"gspread-dataframe==3.0.8\n", | |
"gym==0.17.2\n", | |
"h5py==2.10.0\n", | |
"HeapDict==1.0.1\n", | |
"holidays==0.10.3\n", | |
"holoviews==1.13.4\n", | |
"html5lib==1.0.1\n", | |
"httpimport==0.5.18\n", | |
"httplib2==0.17.4\n", | |
"httplib2shim==0.0.3\n", | |
"humanize==0.5.1\n", | |
"hyperopt==0.1.2\n", | |
"ideep4py==2.0.0.post3\n", | |
"idna==2.10\n", | |
"image==1.5.32\n", | |
"imageio==2.4.1\n", | |
"imagesize==1.2.0\n", | |
"imbalanced-learn==0.4.3\n", | |
"imblearn==0.0\n", | |
"imgaug==0.2.9\n", | |
"importlib-metadata==2.0.0\n", | |
"imutils==0.5.3\n", | |
"inflect==2.1.0\n", | |
"iniconfig==1.0.1\n", | |
"intel-openmp==2020.0.133\n", | |
"intervaltree==2.1.0\n", | |
"ipykernel==4.10.1\n", | |
"ipython==5.5.0\n", | |
"ipython-genutils==0.2.0\n", | |
"ipython-sql==0.3.9\n", | |
"ipywidgets==7.5.1\n", | |
"itsdangerous==1.1.0\n", | |
"jax==0.2.0\n", | |
"jaxlib==0.1.55\n", | |
"jdcal==1.4.1\n", | |
"jedi==0.17.2\n", | |
"jieba==0.42.1\n", | |
"Jinja2==2.11.2\n", | |
"joblib==0.16.0\n", | |
"jpeg4py==0.1.4\n", | |
"jsonschema==2.6.0\n", | |
"jupyter==1.0.0\n", | |
"jupyter-client==5.3.5\n", | |
"jupyter-console==5.2.0\n", | |
"jupyter-core==4.6.3\n", | |
"jupyterlab-pygments==0.1.2\n", | |
"kaggle==1.5.8\n", | |
"kapre==0.1.3.1\n", | |
"Keras==2.4.3\n", | |
"Keras-Preprocessing==1.1.2\n", | |
"keras-vis==0.4.1\n", | |
"kiwisolver==1.2.0\n", | |
"knnimpute==0.1.0\n", | |
"korean-lunar-calendar==0.2.1\n", | |
"librosa==0.6.3\n", | |
"lightgbm==2.2.3\n", | |
"llvmlite==0.31.0\n", | |
"lmdb==0.99\n", | |
"lucid==0.3.8\n", | |
"LunarCalendar==0.0.9\n", | |
"lxml==4.2.6\n", | |
"Markdown==3.2.2\n", | |
"MarkupSafe==1.1.1\n", | |
"matplotlib==3.2.2\n", | |
"matplotlib-venn==0.11.5\n", | |
"missingno==0.4.2\n", | |
"mistune==0.8.4\n", | |
"mizani==0.6.0\n", | |
"mkl==2019.0\n", | |
"mlxtend==0.14.0\n", | |
"more-itertools==8.5.0\n", | |
"moviepy==0.2.3.5\n", | |
"mpmath==1.1.0\n", | |
"msgpack==1.0.0\n", | |
"multiprocess==0.70.10\n", | |
"multitasking==0.0.9\n", | |
"murmurhash==1.0.2\n", | |
"music21==5.5.0\n", | |
"natsort==5.5.0\n", | |
"nbclient==0.5.0\n", | |
"nbconvert==5.6.1\n", | |
"nbformat==5.0.7\n", | |
"nest-asyncio==1.4.1\n", | |
"networkx==2.5\n", | |
"nibabel==3.0.2\n", | |
"nltk==3.2.5\n", | |
"notebook==5.3.1\n", | |
"np-utils==0.5.12.1\n", | |
"numba==0.48.0\n", | |
"numexpr==2.7.1\n", | |
"numpy==1.18.5\n", | |
"nvidia-ml-py3==7.352.0\n", | |
"oauth2client==4.1.3\n", | |
"oauthlib==3.1.0\n", | |
"okgrade==0.4.3\n", | |
"opencv-contrib-python==4.1.2.30\n", | |
"opencv-python==4.1.2.30\n", | |
"openpyxl==2.5.9\n", | |
"opt-einsum==3.3.0\n", | |
"osqp==0.6.1\n", | |
"packaging==20.4\n", | |
"palettable==3.3.0\n", | |
"pandas==1.1.2\n", | |
"pandas-datareader==0.9.0\n", | |
"pandas-gbq==0.13.2\n", | |
"pandas-profiling==1.4.1\n", | |
"pandocfilters==1.4.2\n", | |
"panel==0.9.7\n", | |
"param==1.9.3\n", | |
"parso==0.7.1\n", | |
"pathlib==1.0.1\n", | |
"patsy==0.5.1\n", | |
"pexpect==4.8.0\n", | |
"pickleshare==0.7.5\n", | |
"Pillow==7.0.0\n", | |
"pip-tools==4.5.1\n", | |
"plac==1.1.3\n", | |
"plotly==4.4.1\n", | |
"plotnine==0.6.0\n", | |
"pluggy==0.7.1\n", | |
"portpicker==1.3.1\n", | |
"prefetch-generator==1.0.1\n", | |
"preshed==3.0.2\n", | |
"prettytable==0.7.2\n", | |
"progressbar2==3.38.0\n", | |
"prometheus-client==0.8.0\n", | |
"promise==2.3\n", | |
"prompt-toolkit==1.0.18\n", | |
"protobuf==3.12.4\n", | |
"psutil==5.4.8\n", | |
"psycopg2==2.7.6.1\n", | |
"ptyprocess==0.6.0\n", | |
"py==1.9.0\n", | |
"pyarrow==0.14.1\n", | |
"pyasn1==0.4.8\n", | |
"pyasn1-modules==0.2.8\n", | |
"pycocotools==2.0.2\n", | |
"pycparser==2.20\n", | |
"pyct==0.4.8\n", | |
"pydata-google-auth==1.1.0\n", | |
"pydot==1.3.0\n", | |
"pydot-ng==2.0.0\n", | |
"pydotplus==2.0.2\n", | |
"PyDrive==1.3.1\n", | |
"pyemd==0.5.1\n", | |
"pyglet==1.5.0\n", | |
"Pygments==2.6.1\n", | |
"pygobject==3.26.1\n", | |
"pymc3==3.7\n", | |
"PyMeeus==0.3.7\n", | |
"pymongo==3.11.0\n", | |
"pymystem3==0.2.0\n", | |
"PyOpenGL==3.1.5\n", | |
"pyparsing==2.4.7\n", | |
"pyrsistent==0.17.3\n", | |
"pysndfile==1.3.8\n", | |
"PySocks==1.7.1\n", | |
"pystan==2.19.1.1\n", | |
"pytest==3.6.4\n", | |
"python-apt==1.6.5+ubuntu0.3\n", | |
"python-chess==0.23.11\n", | |
"python-dateutil==2.8.1\n", | |
"python-louvain==0.14\n", | |
"python-slugify==4.0.1\n", | |
"python-utils==2.4.0\n", | |
"pytorch-lightning==0.10.0\n", | |
"pytorch-lightning-bolts==0.2.2\n", | |
"pytz==2018.9\n", | |
"pyviz-comms==0.7.6\n", | |
"PyWavelets==1.1.1\n", | |
"PyYAML==5.3.1\n", | |
"pyzmq==19.0.2\n", | |
"qtconsole==4.7.7\n", | |
"QtPy==1.9.0\n", | |
"regex==2019.12.20\n", | |
"requests==2.23.0\n", | |
"requests-oauthlib==1.3.0\n", | |
"resampy==0.2.2\n", | |
"retrying==1.3.3\n", | |
"rpy2==3.2.7\n", | |
"rsa==4.6\n", | |
"scikit-image==0.16.2\n", | |
"scikit-learn==0.22.2.post1\n", | |
"scipy==1.4.1\n", | |
"screen-resolution-extra==0.0.0\n", | |
"scs==2.1.2\n", | |
"seaborn==0.11.0\n", | |
"Send2Trash==1.5.0\n", | |
"setuptools-git==1.2\n", | |
"Shapely==1.7.1\n", | |
"simplegeneric==0.8.1\n", | |
"six==1.15.0\n", | |
"sklearn==0.0\n", | |
"sklearn-pandas==1.8.0\n", | |
"slugify==0.0.1\n", | |
"smart-open==2.2.0\n", | |
"snowballstemmer==2.0.0\n", | |
"sortedcontainers==2.2.2\n", | |
"spacy==2.2.4\n", | |
"Sphinx==1.8.5\n", | |
"sphinxcontrib-serializinghtml==1.1.4\n", | |
"sphinxcontrib-websupport==1.2.4\n", | |
"SQLAlchemy==1.3.19\n", | |
"sqlparse==0.3.1\n", | |
"srsly==1.0.2\n", | |
"statsmodels==0.10.2\n", | |
"sympy==1.1.1\n", | |
"tables==3.4.4\n", | |
"tabulate==0.8.7\n", | |
"tblib==1.7.0\n", | |
"tensorboard==2.3.0\n", | |
"tensorboard-plugin-wit==1.7.0\n", | |
"tensorboardcolab==0.0.22\n", | |
"tensorflow==2.3.0\n", | |
"tensorflow-addons==0.8.3\n", | |
"tensorflow-datasets==2.1.0\n", | |
"tensorflow-estimator==2.3.0\n", | |
"tensorflow-gcs-config==2.3.0\n", | |
"tensorflow-hub==0.9.0\n", | |
"tensorflow-metadata==0.24.0\n", | |
"tensorflow-privacy==0.2.2\n", | |
"tensorflow-probability==0.11.0\n", | |
"termcolor==1.1.0\n", | |
"terminado==0.9.1\n", | |
"testpath==0.4.4\n", | |
"text-unidecode==1.3\n", | |
"textblob==0.15.3\n", | |
"textgenrnn==1.4.1\n", | |
"Theano==1.0.5\n", | |
"thinc==7.4.0\n", | |
"tifffile==2020.9.3\n", | |
"toml==0.10.1\n", | |
"toolz==0.11.1\n", | |
"torch==1.6.0+cu101\n", | |
"torchsummary==1.5.1\n", | |
"torchtext==0.3.1\n", | |
"torchvision==0.7.0+cu101\n", | |
"tornado==5.1.1\n", | |
"tqdm==4.41.1\n", | |
"traitlets==4.3.3\n", | |
"tweepy==3.6.0\n", | |
"typeguard==2.7.1\n", | |
"typing-extensions==3.7.4.3\n", | |
"tzlocal==1.5.1\n", | |
"umap-learn==0.4.6\n", | |
"uritemplate==3.0.1\n", | |
"urllib3==1.24.3\n", | |
"vega-datasets==0.8.0\n", | |
"wasabi==0.8.0\n", | |
"wcwidth==0.2.5\n", | |
"webencodings==0.5.1\n", | |
"Werkzeug==1.0.1\n", | |
"widgetsnbextension==3.5.1\n", | |
"wordcloud==1.5.0\n", | |
"wrapt==1.12.1\n", | |
"xarray==0.15.1\n", | |
"xgboost==0.90\n", | |
"xkit==0.0.0\n", | |
"xlrd==1.1.0\n", | |
"xlwt==1.3.0\n", | |
"yellowbrick==0.9.1\n", | |
"zict==2.0.0\n", | |
"zipp==3.2.0\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "CGFv4zeNBf4R" | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment