Files
2026-10-26 16:07:39 +00:00

13 lines
440 B
Python

from spectralforensics import correlation_plot
if __name__ == "__main__":
result = correlation_plot(
{"entropy": [2.1, 2.5, 2.2, 2.9, 2.6],
"anisotropy": [0.1, 0.3, 0.2, 0.4, 0.25],
"target": [0, 1, 0, 1, 1]},
correlation_columns=["entropy", "anisotropy", "target"],
method="pearson", cmap="coolwarm", center=0, annot=True, fmt=".2f",
target="target", kind="barh", by="target",
)