Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Feb 29, 2024
1 parent 94d4e48 commit aee20d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ scratchpad.jl
/docs/src/index.md
/docs/src/examples/*.md

*.pdf
*.pdf
*.svg
10 changes: 10 additions & 0 deletions libs/HMMComparison/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# HMMComparison

To re-run the experiments from the JOSS paper, clone the repository, start a Julia REPL and run

```julia
include("libs/HMMComparison/experiments/measurements.jl")
include("libs/HMMComparison/experiments/plots.jl")
```

The results and plots will appear in `libs/HMMComparison/experiments/results/`.
12 changes: 6 additions & 6 deletions libs/HMMComparison/experiments/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ algos = ["viterbi", "forward", "forward_backward", "baum_welch"]
markers = [:star5, :circle, :diamond, :hexagon, :pentagon]
linestyles = [nothing, :dot, :dash, :dashdot, :dashdotdot]

fig = Figure(size=(900, 700))
fig = Figure(; size=(900, 700))
ax = nothing
for (k, algo) in enumerate(algos)
ax = Axis(
Expand All @@ -28,9 +28,9 @@ for (k, algo) in enumerate(algos)
ylabel="runtime (s)",
yscale=log10,
xticks=unique(data[!, :nb_states]),
yminorticksvisible = true,
yminorgridvisible = true,
yminorticks = IntervalsBetween(5)
yminorticksvisible=true,
yminorgridvisible=true,
yminorticks=IntervalsBetween(5),
)

for (i, implem) in enumerate(implems)
Expand All @@ -47,6 +47,6 @@ for (k, algo) in enumerate(algos)
)
end
end
Legend(fig[3, 1:2], ax, orientation = :horizontal)
Legend(fig[3, 1:2], ax; orientation=:horizontal)
fig
save(joinpath(@__DIR__, "results", "benchmark.pdf"), fig)
save(joinpath(@__DIR__, "results", "benchmark.svg"), fig)

0 comments on commit aee20d6

Please sign in to comment.