Argmax2D
Public
DecisionFocusedLearningBenchmarks.Argmax2D.Argmax2DBenchmark
— Typestruct Argmax2DBenchmark{E, R} <: AbstractBenchmark
Argmax becnhmark on a 2d polytope.
Fields
nb_features::Int64
: number of featuresencoder::Any
: true mapping between features and costspolytope_vertex_range::Any
:
DecisionFocusedLearningBenchmarks.Argmax2D.Argmax2DBenchmark
— MethodArgmax2DBenchmark(
;
nb_features,
seed,
polytope_vertex_range
) -> Argmax2DBenchmark{E, Vector{Int64}} where E<:(Flux.Dense{typeof(identity), Matrix{Float32}})
Custom constructor for Argmax2DBenchmark
.
Private
DecisionFocusedLearningBenchmarks.Utils.generate_dataset
— Functiongenerate_dataset(bench::Argmax2DBenchmark; ...) -> Vector
generate_dataset(
bench::Argmax2DBenchmark,
dataset_size;
seed,
rng
) -> Any
Generate a dataset for the Argmax2DBenchmark
.
DecisionFocusedLearningBenchmarks.Utils.generate_maximizer
— Methodgenerate_maximizer(
_::Argmax2DBenchmark
) -> typeof(DecisionFocusedLearningBenchmarks.Argmax2D.maximizer)
Maximizer for the Argmax2DBenchmark
.
DecisionFocusedLearningBenchmarks.Utils.generate_statistical_model
— Methodgenerate_statistical_model(
bench::Argmax2DBenchmark;
seed,
rng
) -> Flux.Dense{typeof(identity), Matrix{Float32}}
Generate a statistical model for the Argmax2DBenchmark
.
DecisionFocusedLearningBenchmarks.Utils.plot_data
— Methodplot_data(
bench::Argmax2DBenchmark,
sample::DataSample;
instance,
θ,
kwargs...
) -> Plots.Plot
Plot the data sample for the Argmax2DBenchmark
.