(df: pd.DataFrame)
| 135 | |
| 136 | |
| 137 | def 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 | |
| 160 | def domain_perfomance(df: pd.DataFrame): |
nothing calls this directly
no outgoing calls
no test coverage detected