Commit 0f88d9ae authored by LANORE Vincent's avatar LANORE Vincent
Browse files

Added debug message that displays number of unique pairs for pair script

parent 23205bdd
......@@ -176,7 +176,8 @@ MESSAGE("%s%% of drawn pairs were kept." % data("%.1f" % (100 * nb_ok / nb_it)))
MESSAGE("Post-treatment of pair bins...")
for i in range(nb_bins):
pair_bins[i] = pair_bins[i].sort_values(by=["distance"])
pair_bins[i] = pair_bins[i].sort_values(by=["distance"]) # sort by distance
MESSAGE("Class " + data(i) + " contains " + data(pair_bins[i].groupby(["p1", "p2"]).size().shape[0]) + " unique oriented pairs.")
plot_bins = int(float(pair_bins[i]["distance"].max() - pair_bins[i]["distance"].min()) / 0.01)
plot_bins = max(1, plot_bins)
pair_bins[i]["distance"].hist(bins = plot_bins)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment