-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDFLBenchmarksPlotsExt.jl
More file actions
30 lines (25 loc) · 917 Bytes
/
DFLBenchmarksPlotsExt.jl
File metadata and controls
30 lines (25 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module DFLBenchmarksPlotsExt
using DecisionFocusedLearningBenchmarks
using DocStringExtensions: TYPEDSIGNATURES
using LaTeXStrings: @L_str
using Plots
import DecisionFocusedLearningBenchmarks:
has_visualization, plot_instance, plot_solution, plot_trajectory, animate_trajectory
include("plots/argmax2d_plots.jl")
include("plots/warcraft_plots.jl")
include("plots/svs_plots.jl")
include("plots/dvs_plots.jl")
include("plots/tst_plots.jl")
"""
plot_solution(bench::AbstractBenchmark, sample::DataSample, y; kwargs...)
Reconstruct a new sample with `y` overridden and delegate to the 2-arg
[`plot_solution`](@ref). Only available when `Plots` is loaded.
"""
function plot_solution(bench::AbstractBenchmark, sample::DataSample, y; kwargs...)
return plot_solution(
bench,
DataSample(; sample.context..., x=sample.x, θ=sample.θ, y=y, extra=sample.extra);
kwargs...,
)
end
end