We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3513bd2 + a951c20 commit 8af5015Copy full SHA for 8af5015
README.md
@@ -43,7 +43,13 @@ A `Trajectory` contains 3 parts:
43
Typical usage:
44
45
```julia
46
-julia> t = Trajectory(Traces(a=Int[], b=Bool[]), BatchSampler(3), InsertSampleRatioControler(1.0, 3));
+julia> t = Trajectory(
47
+ container = Traces(a=Int[], b=Bool[]),
48
+ sampler = BatchSampler(3),
49
+ controller = InsertSampleRatioController(1.0, 3, 0, 0)
50
+ );
51
+
52
+julia> push!(t, (a=1,));
53
54
julia> for i in 1:5
55
push!(t, (a=i, b=iseven(i)))
@@ -52,9 +58,10 @@ julia> for i in 1:5
58
julia> for batch in t
59
println(batch)
60
end
-(a = [4, 5, 1], b = Bool[1, 0, 0])
56
-(a = [3, 2, 4], b = Bool[0, 1, 1])
57
-(a = [4, 1, 2], b = Bool[1, 0, 1])
61
+(a = [1, 3, 1], b = Bool[1, 1, 1])
62
+(a = [4, 1, 4], b = Bool[0, 0, 0])
63
+(a = [1, 4, 1], b = Bool[1, 0, 0])
64
+(a = [1, 1, 4], b = Bool[1, 0, 0])
65
```
66
67
**Traces**
0 commit comments