Skip to content

Commit 1dd5402

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents dd861c0 + bdd1390 commit 1dd5402

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

install_deps

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/usr/bin/env bash
2-
pip3 install --upgrade pip
3-
pip3 install -e . --upgrade --no-cache-dir --progress-bar off
2+
python3 -m pip install --user --upgrade pip
3+
python3 -m pip install --user -e . --upgrade --no-cache-dir --progress-bar off
4+
python3 -m pip install --user git+https://github.com/JKCooper2/gym-bandits#egg=gym-bandits
5+
6+
#"Then you will need to install libgl1-mesa-dev"
7+
#"Also depends on libxkbcommon-x11-dev"

requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,3 @@ pytest
55
tqdm
66
matplotlib
77
pyyaml
8-
9-
#git+https://github.com/JKCooper2/gym-bandits#egg=gym-bandits
10-
11-
# swig
12-
# freetype

rl/book/chapter_2/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def plot(data: numpy.ndarray, agent_config, image_name: str, num_iterations: int
103103
percentage_plot.legend()
104104
plt.tight_layout()
105105
plt.savefig(image_name, dpi=100)
106+
plt.plot()
106107

107108

108109
def run_experiment(args):

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/usr/bin/env python3
22

33
import os
4-
54
import setuptools
65

76
DIR = os.path.dirname(__file__)
87
REQUIREMENTS = os.path.join(DIR, "requirements.txt")
98

109
with open(REQUIREMENTS) as f:
11-
reqs = f.read()
10+
reqs = f.read().strip().split("\n")
1211

1312
setuptools.setup(
1413
name="rl",
@@ -18,7 +17,7 @@
1817
author="Manuel Meraz-Rodriguez",
1918
license="MIT",
2019
packages=setuptools.find_packages(),
21-
install_requires=reqs.strip().split("\n"),
20+
install_requires=reqs,
2221
entry_points={
2322
"console_scripts": [
2423
"tictactoe = rl.book.chapter_1.tictactoe.main:main",

0 commit comments

Comments
 (0)