fix example for plotting Ray Tune history (#14970)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Maxi 2024-08-06 11:23:47 +02:00 committed by GitHub
parent f8d7038fb3
commit 8564ff4c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,7 +165,7 @@ You can plot the history of reported metrics for each trial to see how the metri
```python
import matplotlib.pyplot as plt
for result in result_grid:
for i, result in enumerate(result_grid):
plt.plot(
result.metrics_dataframe["training_iteration"],
result.metrics_dataframe["mean_accuracy"],