Skip to content

Commit 475e7b4

Browse files
committed
cleanup and bump version
1 parent a0cdf3f commit 475e7b4

File tree

2 files changed

+1
-73
lines changed

2 files changed

+1
-73
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DecisionFocusedLearningBenchmarks"
22
uuid = "2fbe496a-299b-4c81-bab5-c44dfc55cf20"
33
authors = ["Members of JuliaDecisionFocusedLearning"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[deps]
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"

src/Argmax2D/polytope.jl

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -51,75 +51,3 @@ function plot_maximizer!(pl, θ, instance, maximizer)
5151
label=L"f(\theta)",
5252
)
5353
end;
54-
55-
# function get_angle(v)
56-
# @assert !(norm(v) ≈ 0)
57-
# v = v ./ norm(v)
58-
# if v[2] >= 0
59-
# return acos(v[1])
60-
# else
61-
# return π + acos(-v[1])
62-
# end
63-
# end;
64-
65-
# function plot_distribution!(pl, probadist)
66-
# A = probadist.atoms
67-
# As = sort(A; by=get_angle)
68-
# p = probadist.weights
69-
# Plots.plot!(
70-
# pl,
71-
# vcat(map(first, As), first(As[1])),
72-
# vcat(map(last, As), last(As[1]));
73-
# fillrange=0,
74-
# fillcolor=:blue,
75-
# fillalpha=0.1,
76-
# linestyle=:dash,
77-
# linecolor=Colors.JULIA_LOGO_COLORS.blue,
78-
# label=L"\mathrm{conv}(\hat{p}(\theta))",
79-
# )
80-
# return Plots.scatter!(
81-
# pl,
82-
# map(first, A),
83-
# map(last, A);
84-
# markersize=25 .* p .^ 0.5,
85-
# markercolor=Colors.JULIA_LOGO_COLORS.blue,
86-
# markerstrokewidth=0,
87-
# markeralpha=0.4,
88-
# label=L"\hat{p}(\theta)",
89-
# )
90-
# end;
91-
92-
# function plot_expectation!(pl, probadist)
93-
# ŷΩ = compute_expectation(probadist)
94-
# return scatter!(
95-
# pl,
96-
# [ŷΩ[1]],
97-
# [ŷΩ[2]];
98-
# color=Colors.JULIA_LOGO_COLORS.blue,
99-
# markersize=6,
100-
# markershape=:hexagon,
101-
# label=L"\hat{f}(\theta)",
102-
# )
103-
# end;
104-
105-
# function compress_distribution!(
106-
# probadist::DifferentiableExpectations.FixedAtomsProbabilityDistribution{A,W}; atol=0
107-
# ) where {A,W}
108-
# (; atoms, weights) = probadist
109-
# to_delete = Int[]
110-
# for i in length(probadist):-1:1
111-
# ai = atoms[i]
112-
# for j in 1:(i - 1)
113-
# aj = atoms[j]
114-
# if isapprox(ai, aj; atol=atol)
115-
# weights[j] += weights[i]
116-
# push!(to_delete, i)
117-
# break
118-
# end
119-
# end
120-
# end
121-
# sort!(to_delete)
122-
# deleteat!(atoms, to_delete)
123-
# deleteat!(weights, to_delete)
124-
# return probadist
125-
# end;

0 commit comments

Comments
 (0)