-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeepSurv Setup
1 lines (1 loc) · 8.98 KB
/
DeepSurv Setup
1
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"DeepSurv Setup","provenance":[]},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"fD0nJyO64v1Q","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":289},"outputId":"a0921b54-3225-4e10-db4f-eb1709716b32","executionInfo":{"status":"ok","timestamp":1571956244140,"user_tz":360,"elapsed":14537,"user":{"displayName":"Massimiliano Moro","photoUrl":"https://lh3.googleusercontent.com/a-/AAuE7mDymf99VnBjdJnfTjhueXcT4sr5mCf1JlwT6zMAxg=s64","userId":"10509857423954070958"}}},"source":["!pip install --upgrade https://github.com/Theano/Theano/archive/master.zip\n"],"execution_count":1,"outputs":[{"output_type":"stream","text":["Collecting https://github.com/Theano/Theano/archive/master.zip\n","\u001b[?25l Downloading https://github.com/Theano/Theano/archive/master.zip\n","\u001b[K \\ 30.9MB 1.2MB/s\n","\u001b[?25hRequirement already satisfied, skipping upgrade: numpy>=1.9.1 in /usr/local/lib/python3.6/dist-packages (from Theano==1.0.4+unknown) (1.17.3)\n","Requirement already satisfied, skipping upgrade: scipy>=0.14 in /usr/local/lib/python3.6/dist-packages (from Theano==1.0.4+unknown) (1.3.1)\n","Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/local/lib/python3.6/dist-packages (from Theano==1.0.4+unknown) (1.12.0)\n","Building wheels for collected packages: Theano\n"," Building wheel for Theano (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for Theano: filename=Theano-1.0.4+unknown-cp36-none-any.whl size=2666479 sha256=fb6f922c7fafbe81ee66eec7f5be1ecdb29a8215614ea7b3d3c083d497ba57b6\n"," Stored in directory: /tmp/pip-ephem-wheel-cache-wlecuxdx/wheels/33/73/96/0ed263c62a86e2485ea634e0d3ae8169d50fd66e3b252541db\n","Successfully built Theano\n","Installing collected packages: Theano\n"," Found existing installation: Theano 1.0.4\n"," Uninstalling Theano-1.0.4:\n"," Successfully uninstalled Theano-1.0.4\n","Successfully installed Theano-1.0.4+unknown\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"lR7y3t1n5MFV","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":204},"outputId":"64d8e42a-9751-413f-a60e-6f5051eb840a","executionInfo":{"status":"ok","timestamp":1571956256886,"user_tz":360,"elapsed":7666,"user":{"displayName":"Massimiliano Moro","photoUrl":"https://lh3.googleusercontent.com/a-/AAuE7mDymf99VnBjdJnfTjhueXcT4sr5mCf1JlwT6zMAxg=s64","userId":"10509857423954070958"}}},"source":["!pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip"],"execution_count":2,"outputs":[{"output_type":"stream","text":["Collecting https://github.com/Lasagne/Lasagne/archive/master.zip\n","\u001b[?25l Downloading https://github.com/Lasagne/Lasagne/archive/master.zip\n","\u001b[K \\ 1.7MB 13.0MB/s\n","\u001b[?25hRequirement already satisfied, skipping upgrade: numpy in /usr/local/lib/python3.6/dist-packages (from Lasagne==0.2.dev1) (1.17.3)\n","Building wheels for collected packages: Lasagne\n"," Building wheel for Lasagne (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for Lasagne: filename=Lasagne-0.2.dev1-cp36-none-any.whl size=122750 sha256=d417248628494ad4baf2438137311f3a6d0d41565b262e418f4e72a2fed1fa1e\n"," Stored in directory: /tmp/pip-ephem-wheel-cache-qpuha8gl/wheels/ca/4a/00/87f1777b229481fe76562df7c0cfb993bc88ed0cc37e3f0ed4\n","Successfully built Lasagne\n","Installing collected packages: Lasagne\n","Successfully installed Lasagne-0.2.dev1\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"uSOp8sK35Nlb","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":204},"outputId":"36314e61-867f-4fe9-a0b4-35d4904d54ad","executionInfo":{"status":"ok","timestamp":1571956265042,"user_tz":360,"elapsed":3951,"user":{"displayName":"Massimiliano Moro","photoUrl":"https://lh3.googleusercontent.com/a-/AAuE7mDymf99VnBjdJnfTjhueXcT4sr5mCf1JlwT6zMAxg=s64","userId":"10509857423954070958"}}},"source":["!pip install pymc3"],"execution_count":3,"outputs":[{"output_type":"stream","text":["Requirement already satisfied: pymc3 in /usr/local/lib/python3.6/dist-packages (3.7)\n","Requirement already satisfied: numpy>=1.13.0 in /usr/local/lib/python3.6/dist-packages (from pymc3) (1.17.3)\n","Requirement already satisfied: tqdm>=4.8.4 in /usr/local/lib/python3.6/dist-packages (from pymc3) (4.28.1)\n","Requirement already satisfied: patsy>=0.4.0 in /usr/local/lib/python3.6/dist-packages (from pymc3) (0.5.1)\n","Requirement already satisfied: scipy>=0.18.1 in /usr/local/lib/python3.6/dist-packages (from pymc3) (1.3.1)\n","Requirement already satisfied: pandas>=0.18.0 in /usr/local/lib/python3.6/dist-packages (from pymc3) (0.25.2)\n","Requirement already satisfied: h5py>=2.7.0 in /usr/local/lib/python3.6/dist-packages (from pymc3) (2.8.0)\n","Requirement already satisfied: theano>=1.0.4 in /usr/local/lib/python3.6/dist-packages (from pymc3) (1.0.4+unknown)\n","Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from patsy>=0.4.0->pymc3) (1.12.0)\n","Requirement already satisfied: python-dateutil>=2.6.1 in /usr/local/lib/python3.6/dist-packages (from pandas>=0.18.0->pymc3) (2.6.1)\n","Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.6/dist-packages (from pandas>=0.18.0->pymc3) (2018.9)\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"9XOesjP_5Rm0","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":102},"outputId":"09c99863-98d2-4a0f-db85-7a17eb2c669f","executionInfo":{"status":"ok","timestamp":1571956279937,"user_tz":360,"elapsed":5473,"user":{"displayName":"Massimiliano Moro","photoUrl":"https://lh3.googleusercontent.com/a-/AAuE7mDymf99VnBjdJnfTjhueXcT4sr5mCf1JlwT6zMAxg=s64","userId":"10509857423954070958"}}},"source":["!git clone https://github.com/jaredleekatzman/DeepSurv.git"],"execution_count":4,"outputs":[{"output_type":"stream","text":["Cloning into 'DeepSurv'...\n","remote: Enumerating objects: 348, done.\u001b[K\n","remote: Total 348 (delta 0), reused 0 (delta 0), pack-reused 348\u001b[K\n","Receiving objects: 100% (348/348), 5.17 MiB | 3.52 MiB/s, done.\n","Resolving deltas: 100% (163/163), done.\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"QO9uAnBP5eNc","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":323},"outputId":"67c0b50b-97ae-48d3-9de2-06b6d106d6c4","executionInfo":{"status":"ok","timestamp":1571956962748,"user_tz":360,"elapsed":3731,"user":{"displayName":"Massimiliano Moro","photoUrl":"https://lh3.googleusercontent.com/a-/AAuE7mDymf99VnBjdJnfTjhueXcT4sr5mCf1JlwT6zMAxg=s64","userId":"10509857423954070958"}}},"source":["!pip install DeepSurv"],"execution_count":6,"outputs":[{"output_type":"stream","text":["Requirement already satisfied: DeepSurv in /usr/local/lib/python3.6/dist-packages (0.1.0)\n","Requirement already satisfied: lasagne in /usr/local/lib/python3.6/dist-packages (from DeepSurv) (0.2.dev1)\n","Requirement already satisfied: lifelines in /usr/local/lib/python3.6/dist-packages (from DeepSurv) (0.22.8)\n","Requirement already satisfied: theano in /usr/local/lib/python3.6/dist-packages (from DeepSurv) (1.0.4+unknown)\n","Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from lasagne->DeepSurv) (1.17.3)\n","Requirement already satisfied: pandas>=0.23.0 in /usr/local/lib/python3.6/dist-packages (from lifelines->DeepSurv) (0.25.2)\n","Requirement already satisfied: autograd>=1.3 in /usr/local/lib/python3.6/dist-packages (from lifelines->DeepSurv) (1.3)\n","Requirement already satisfied: matplotlib>=3.0 in /usr/local/lib/python3.6/dist-packages (from lifelines->DeepSurv) (3.1.1)\n","Requirement already satisfied: scipy>=1.0 in /usr/local/lib/python3.6/dist-packages (from lifelines->DeepSurv) (1.3.1)\n","Requirement already satisfied: autograd-gamma>=0.3 in /usr/local/lib/python3.6/dist-packages (from lifelines->DeepSurv) (0.4.1)\n","Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.6/dist-packages (from theano->DeepSurv) (1.12.0)\n","Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.6/dist-packages (from pandas>=0.23.0->lifelines->DeepSurv) (2018.9)\n","Requirement already satisfied: python-dateutil>=2.6.1 in /usr/local/lib/python3.6/dist-packages (from pandas>=0.23.0->lifelines->DeepSurv) (2.6.1)\n","Requirement already satisfied: future>=0.15.2 in /usr/local/lib/python3.6/dist-packages (from autograd>=1.3->lifelines->DeepSurv) (0.16.0)\n","Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=3.0->lifelines->DeepSurv) (0.10.0)\n","Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=3.0->lifelines->DeepSurv) (2.4.2)\n","Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib>=3.0->lifelines->DeepSurv) (1.1.0)\n","Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from kiwisolver>=1.0.1->matplotlib>=3.0->lifelines->DeepSurv) (41.4.0)\n"],"name":"stdout"}]}]}