p3: visualise explicit theta

This commit is contained in:
leo 2023-03-15 20:03:49 +01:00
parent 94b7d61f16
commit 628e107f21
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -70,9 +70,13 @@ explicitTheta = pd.read_csv('data/explicit_theta.csv', header=None)
eTx = explicitTheta[0:4]
eTy = explicitTheta[4:8]
eTxy = [eTx, eTy]
explicitTheta = np.array(eTxy)
print(explicitTheta)
eTxy = [np.transpose(eTx), np.transpose(eTy)]
plt.scatter(th_columns, eTxy[0], label="$\hat{θ}_0$")
plt.scatter(th_columns, eTxy[1], label="$\hat{θ}_1$")
plt.legend()
plt.title("ARX Theta (θ) Parameter Estimation using ELSq")
plt.savefig('res/explicit_theta.png', dpi=300)
plt.clf()
explicitError = pd.read_csv('data/explicit_error.csv', header=None)