fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # ログから読み取った平均移動距離の推移(0回目~49回目)
  4. # ※スペースの都合上、主要なポイントのみ記載していますが、実際はログの数値をすべて入れます
  5. history = [29.2, 27.6, 30.4, 29.4, 31.2, 30.0, 30.0, 30.0, 29.8, 29.6,
  6. 30.2, 29.2, 30.4, 29.6, 29.0, 29.4, 31.0, 30.4, 31.2, 29.6,
  7. 31.6, 31.2, 29.4, 29.2, 29.6, 28.8, 28.8, 29.6, 29.8, 28.4,
  8. 30.2, 30.8, 29.8, 30.4, 29.4, 30.0, 30.0, 30.4, 30.2, 29.6,
  9. 28.0, 29.8, 29.8, 30.0, 30.2, 30.2, 29.0, 29.6, 29.6, 29.8]
  10.  
  11. plt.figure(figsize=(10, 6))
  12. plt.plot(history, marker='o')
  13. plt.title('Average Distance over Iterations (Failed Convergence)')
  14. plt.xlabel('Iteration')
  15. plt.ylabel('Average Distance')
  16. plt.grid(True)
  17. plt.show()
Success #stdin #stdout #stderr 4.75s 67908KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Fontconfig error: No writable cache directories