File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -64,40 +64,6 @@ function compare_trained_and_untrained_flow(
64
64
return p
65
65
end
66
66
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
-
101
67
function visualize (p:: Bijectors.MultivariateTransformed , samples= rand (p, 1000 ))
102
68
xrange = range (minimum (samples[1 , :]) - 1 , maximum (samples[1 , :]) + 1 ; length= 100 )
103
69
yrange = range (minimum (samples[2 , :]) - 1 , maximum (samples[2 , :]) + 1 ; length= 100 )
You can’t perform that action at this time.
0 commit comments