|
6 | 6 |
|
7 | 7 | ## Design |
8 | 8 |
|
9 | | -``` |
10 | | - ┌────────────────────────────┐ |
11 | | - │(state=..., action=..., ...)│ |
12 | | - └──────────────┬─────────────┘ |
13 | | - push! │ append! |
14 | | - ┌───────────────────▼───────────────────┐ |
15 | | - │ Trajectory │ |
16 | | - │ ┌─────────────────────────────────┐ │ |
17 | | - │ │ Traces │ │ |
18 | | - │ │ ┌───────────────────┐ │ │ |
19 | | - │ │ state: │CircularArrayBuffer│ │ │ |
20 | | - │ │ └───────────────────┘ │ │ |
21 | | - │ │ ┌───────────────────┐ │ │ |
22 | | - │ │ action:│CircularArrayBuffer│ │ │ |
23 | | - │ │ └───────────────────┘ │ │ |
24 | | - │ │ ...... │ │ |
25 | | - │ └─────────────────────────────────┘ │ |
26 | | - | Sampler | |
27 | | - └───────────────────┬───────────────────┘ |
28 | | - │ batch sampling |
29 | | - ┌──────────────▼─────────────┐ |
30 | | - │(state=..., action=..., ...)│ |
31 | | - └────────────────────────────┘ |
32 | | -``` |
| 9 | +A typical example of `Trajectory`: |
33 | 10 |
|
| 11 | + |
| 12 | + |
| 13 | +Exported APIs are: |
| 14 | + |
| 15 | +```julia |
| 16 | +push!(trajectory; [trace_name=value]...) |
| 17 | +append!(trajectory; [trace_name=value]...) |
| 18 | + |
| 19 | +for sample in trajectory |
| 20 | + # consume samples from the trajectory |
| 21 | +end |
34 | 22 | ``` |
35 | | - ┌──────────────┐ ┌──────────────┐ |
36 | | - │Single Element│ │Batch Elements│ |
37 | | - └──────┬───────┘ └──────┬───────┘ |
38 | | - │ │ |
39 | | - push! └──────┐ ┌───────┘ append! |
40 | | - │ │ |
41 | | - ┌─────────────┼────┼─────────────────────────────┐ |
42 | | - │ ┌──▼────▼──┐ AsyncTrajectory │ |
43 | | - │ │Channel In│ │ |
44 | | - │ └─────┬────┘ │ |
45 | | - │ take! │ │ |
46 | | - │ ┌─────▼─────┐ push! ┌────────────┐ │ |
47 | | - │ │RateLimiter├──────────► Trajectory │ │ |
48 | | - │ └─────┬─────┘ append! └────*───────┘ │ |
49 | | - │ │ * │ |
50 | | - │ put! │********************** │ |
51 | | - │ │ batch sampling │ |
52 | | - │ ┌─────▼─────┐ │ |
53 | | - │ │Channel Out│ │ |
54 | | - │ └───────────┘ │ |
55 | | - └────────────────────────────────────────────────┘ |
56 | | -``` |
| 23 | + |
| 24 | +A wide variety of `container`s, `sampler`s, and `controler`s are provided. For the full list, please read the doc. |
57 | 25 |
|
58 | 26 | ## Acknowledgement |
59 | 27 |
|
|
0 commit comments