You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you have installed Julia v1.1.0 or above (the reason is that we will use a customized registry here). Then enter the pkg mode of Julia REPL (run `julia` and then press `]`):
julia>using RLIntro # Hold on! It might take several minutes to pre-compile!
32
53
33
-
julia>fig_2_2() # reproduce figure_2_2
54
+
julia>plot_all("/path/to/save/figures")
34
55
```
35
56
36
57
## Develop
37
58
38
-
If you would like to make some improvements, I'd suggest the following workflow:
59
+
If you would like to make some improvements, I'd suggest the following workflow to avoid frequently pre-compile the whole package:
39
60
40
61
1. Clone this repo and enter the project folder.
41
-
1. Enter the pkg mode and `(RLIntro) pkg> add https://github.com/Ju-jl/Ju.jl.git` (Because the `Ju.j` is not registered yet. It will not be a big problem after Julia 1.1 get released)
42
-
1. Make changes to some existing *Environment* or create a new Environment and include it in the REPL (like `include("src/environments/MultiArmBandits.jl")`)
62
+
1. Run `julia --project`
63
+
1. Enter the pkg mode (press `]`)
64
+
1. Add the customized registry `(RLIntro) pkg> registry add https://github.com/Ju-jl/Registry.git`
1.`(RLIntro) pkg> dev Ju`. (If you want to improve the dependent package `Ju.jl`)
67
+
1. Run `CTRL-C` and come back to REPL.
68
+
1. Make changes to some existing *Reinforcement Learning Environment* or create a new Reinforcement Learning Environment and include it in the REPL (like `include("src/environments/MultiArmBandits.jl")`)
43
69
1. Make changes to the related source codes and include it in the REPL (like `include("src/chapter02/ten_armed_testbed.jl")`)
70
+
1. Make changes to the `Ju.jl` package if necessary. Usually it is in the folder like `C:\Users\juti\.julia\dev\Ju` (You can get the path by running `(RLIntro) pkg> status` in the package mode).
44
71
1. Run the functions to draw figures (`fig_2_2()`).
0 commit comments