mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
aider: Color the "gpt-3.5" models green in the plotting code.
# Aider chat conversation: USER: color the gpt-3.5 models a new color ASSISTANT: To color the "gpt-3.5" models a new color, we need to modify the plotting code in `benchmark/over_time.py` to check for "gpt-3.5" in the model name and assign a different color. Here are the changes: benchmark/over_time.py ```python <<<<<<< SEARCH colors = ['red' if 'gpt-4' in model else 'blue' for model in models] ======= colors = ['red' if 'gpt-4' in model else 'green' if 'gpt-3.5' in model else 'blue' for model in models] >>>>>>> REPLACE ```
This commit is contained in:
parent
0d11357980
commit
85d9d8430f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def plot_over_time(yaml_file):
|
|||
models.append(entry['model'])
|
||||
|
||||
plt.figure(figsize=(10, 6))
|
||||
colors = ['red' if 'gpt-4' in model else 'blue' for model in models]
|
||||
colors = ['red' if 'gpt-4' in model else 'green' if 'gpt-3.5' in model else 'blue' for model in models]
|
||||
plt.scatter(dates, pass_rates, c=colors, alpha=0.5)
|
||||
|
||||
for i, model in enumerate(models):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue