Skip to content

Commit 0ae1638

Browse files
committed
update warcraft
1 parent 0e0bb82 commit 0ae1638

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Warcraft/Warcraft.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ The embedding is made as follows:
6060
4) The element-wize `neg_tensor` function to get cell weights of proper sign to apply shortest path algorithms.
6161
5) A squeeze function to forget the two last dimensions.
6262
"""
63-
function Utils.generate_statistical_model(::WarcraftBenchmark)
64-
Random.seed!(67)
63+
function Utils.generate_statistical_model(::WarcraftBenchmark; seed=0)
64+
Random.seed!(seed)
6565
resnet18 = ResNet(18; pretrain=false, nclasses=1)
6666
model_embedding = Chain(
6767
resnet18.layers[1][1][1],

test/warcraft.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
y_bellman = bellman_maximizer(θ)
2828
y_dijkstra = dijkstra_maximizer(θ)
29+
@test size(y_bellman) == size(y_true)
30+
@test size(y_dijkstra) == size(y_true)
2931
@test objective_value(b, θ_true, y_bellman) ==
3032
objective_value(b, θ_true, y_dijkstra)
3133

0 commit comments

Comments
 (0)