MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / plot_correlation

Function plot_correlation

utils/src/experiment/statistic.py:137–157  ·  view source on GitHub ↗
(df: pd.DataFrame)

Source from the content-addressed store, hash-verified

135
136
137def plot_correlation(df: pd.DataFrame):
138 df = df.drop(columns=["domain"])
139 correlation_matrix = df[df["setting"] == "PPTCrew-gpt-4o+gpt-4o+gpt-4o"][
140 ["ppl", "fid", "content", "design"]
141 ].corr()
142 # Plot the heatmap with axis limits set from -1 to 1
143 plt.figure(figsize=(10, 8))
144 sns.heatmap(
145 correlation_matrix,
146 annot=True,
147 cmap="coolwarm",
148 fmt=".2f",
149 linewidths=0.5,
150 vmin=-1,
151 vmax=1,
152 annot_kws={"size": 15},
153 )
154 plt.xticks(fontsize=16)
155 plt.yticks(fontsize=16)
156 plt.savefig("correlation.pdf", bbox_inches="tight")
157 plt.show()
158
159
160def domain_perfomance(df: pd.DataFrame):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected