Skip to content

Commit 6b1500c

Browse files
committed
rm useless example utils functions
1 parent 228d0e8 commit 6b1500c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

example/utils.jl

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -64,40 +64,6 @@ function compare_trained_and_untrained_flow(
6464
return p
6565
end
6666

67-
# function check_trained_flow(
68-
# flow_trained::Bijectors.MultivariateTransformed,
69-
# true_dist::ContinuousMultivariateDistribution,
70-
# n_samples::Int;
71-
# kwargs...,
72-
# )
73-
# samples_trained = rand_batch(flow_trained, n_samples)
74-
# samples_true = rand(true_dist, n_samples)
75-
76-
# p = Plots.scatter(
77-
# samples_true[1, :],
78-
# samples_true[2, :];
79-
# label="True Distribution",
80-
# color=:green,
81-
# markersize=2,
82-
# alpha=0.5,
83-
# )
84-
# Plots.scatter!(
85-
# p,
86-
# samples_trained[1, :],
87-
# samples_trained[2, :];
88-
# label="Trained Flow",
89-
# color=:red,
90-
# markersize=2,
91-
# alpha=0.5,
92-
# )
93-
# Plots.plot!(; kwargs...)
94-
95-
# Plots.title!(p, "Trained HamFlow")
96-
97-
# return p
98-
# end
99-
100-
10167
function visualize(p::Bijectors.MultivariateTransformed, samples=rand(p, 1000))
10268
xrange = range(minimum(samples[1, :]) - 1, maximum(samples[1, :]) + 1; length=100)
10369
yrange = range(minimum(samples[2, :]) - 1, maximum(samples[2, :]) + 1; length=100)

0 commit comments

Comments
 (0)