|
773 | 773 | "ray.init(ignore_reinit_error=True)\n", |
774 | 774 | "trainer = PPOTrainer\n", |
775 | 775 | "\n", |
| 776 | + "# if you run this on colab you might want to set num_workers=2\n", |
776 | 777 | "analysis = tune.run(\n", |
777 | 778 | " trainer,\n", |
778 | 779 | " stop={'episode_reward_mean': 100},\n", |
|
781 | 782 | ")" |
782 | 783 | ] |
783 | 784 | }, |
784 | | - { |
785 | | - "cell_type": "code", |
786 | | - "execution_count": 74, |
787 | | - "metadata": {}, |
788 | | - "outputs": [ |
789 | | - { |
790 | | - "name": "stdout", |
791 | | - "output_type": "stream", |
792 | | - "text": [ |
793 | | - "Collecting keras-rl\n", |
794 | | - "\u001b[?25l Downloading https://files.pythonhosted.org/packages/ab/87/4b57eff8e4bd834cea0a75cd6c58198c9e42be29b600db9c14fafa72ec07/keras-rl-0.4.2.tar.gz (40kB)\n", |
795 | | - "\u001b[K |████████████████████████████████| 40kB 320kB/s eta 0:00:01\n", |
796 | | - "\u001b[?25hCollecting keras>=2.0.7 (from keras-rl)\n", |
797 | | - "\u001b[?25l Downloading https://files.pythonhosted.org/packages/ad/fd/6bfe87920d7f4fd475acd28500a42482b6b84479832bdc0fe9e589a60ceb/Keras-2.3.1-py2.py3-none-any.whl (377kB)\n", |
798 | | - "\u001b[K |████████████████████████████████| 378kB 1.2MB/s eta 0:00:01\n", |
799 | | - "\u001b[?25hRequirement already satisfied: h5py in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (2.10.0)\n", |
800 | | - "Requirement already satisfied: pyyaml in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (5.1.2)\n", |
801 | | - "Requirement already satisfied: six>=1.9.0 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.12.0)\n", |
802 | | - "Requirement already satisfied: keras-applications>=1.0.6 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.0.8)\n", |
803 | | - "Requirement already satisfied: keras-preprocessing>=1.0.5 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.1.0)\n", |
804 | | - "Requirement already satisfied: numpy>=1.9.1 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.17.2)\n", |
805 | | - "Requirement already satisfied: scipy>=0.14 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.4.1)\n", |
806 | | - "Building wheels for collected packages: keras-rl\n", |
807 | | - " Building wheel for keras-rl (setup.py) ... \u001b[?25ldone\n", |
808 | | - "\u001b[?25h Created wheel for keras-rl: filename=keras_rl-0.4.2-cp37-none-any.whl size=48380 sha256=c10a55df3269b59b5b41a9cafa9d7b283eed7a64947d55d910374e568d87aa9b\n", |
809 | | - " Stored in directory: /home/ben/.cache/pip/wheels/7d/4d/84/9254c9f2e8f51865cb0dac8e79da85330c735551d31f73c894\n", |
810 | | - "Successfully built keras-rl\n", |
811 | | - "Installing collected packages: keras, keras-rl\n", |
812 | | - "Successfully installed keras-2.3.1 keras-rl-0.4.2\n" |
813 | | - ] |
814 | | - } |
815 | | - ], |
816 | | - "source": [ |
817 | | - "!pip install keras-rl\n" |
818 | | - ] |
819 | | - }, |
820 | 785 | { |
821 | 786 | "cell_type": "code", |
822 | 787 | "execution_count": null, |
|
841 | 806 | "name": "python", |
842 | 807 | "nbconvert_exporter": "python", |
843 | 808 | "pygments_lexer": "ipython3", |
844 | | - "version": "3.7.4" |
| 809 | + "version": "3.6.11" |
845 | 810 | } |
846 | 811 | }, |
847 | 812 | "nbformat": 4, |
|
0 commit comments