Skip to content
Snippets Groups Projects
Commit c6daae5f authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

include correlation coefficient in pixelwise evaluation

parent 7bf09ddd
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ import matplotlib as mpl ...@@ -6,6 +6,7 @@ import matplotlib as mpl
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from scipy.stats import pearsonr
from mu_map.polar_map.prepare import headers from mu_map.polar_map.prepare import headers
...@@ -97,6 +98,7 @@ bins_y = np.arange(0, 100.1, 2) ...@@ -97,6 +98,7 @@ bins_y = np.arange(0, 100.1, 2)
fig, axs = plt.subplots(2, 3, figsize=(15, 10)) fig, axs = plt.subplots(2, 3, figsize=(15, 10))
for i, (label, recon) in enumerate(recons_tot.items()): for i, (label, recon) in enumerate(recons_tot.items()):
recon = np.concatenate(recon) recon = np.concatenate(recon)
print(f"{label}: {pearsonr(baseline_tot, recon)}")
h, xedges, yedges, image = axs[0, i].hist2d(baseline_tot, recon, bins=(bins_x, bins_y)) h, xedges, yedges, image = axs[0, i].hist2d(baseline_tot, recon, bins=(bins_x, bins_y))
h = (h - h.min()) / (h.max() - h.min()) h = (h - h.min()) / (h.max() - h.min())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment