This commit is contained in:
Morten Hjorth-Jensen
2021-11-03 06:48:08 +01:00
parent f6ac0c5f91
commit 45305909b3
6 changed files with 269 additions and 269 deletions
+1 -1
View File
@@ -1206,7 +1206,7 @@ lmbda = 0.001
Id = n*lmbda* np.eye(XT_X.shape[0])
# Hessian matrix
H = (2.0/n)* XT_X+2*lmbda
H = (2.0/n)* XT_X+2*lmbda* np.eye(XT_X.shape[0])
# Get the eigenvalues
EigValues, EigVectors = np.linalg.eig(H)
print(f"Eigenvalues of Hessian Matrix:{EigValues}")