import numpy as np
import matplotlib.pyplot as plt
# 设置参数
a1 = 2
a2 = 0.1
a3 = 0.1
a4 = 1
T = 10
# 生成曲线数据
t = np.linspace(0, 20, 1000)
y = np.exp(-a2 * t**a1) + a3 * (t / T)**a4
# 绘制曲线
plt.plot(t, y)
plt.xlabel('t')
plt.ylabel('R(t)')
plt.title('Evolution of R(t) during training')
plt.show()