[BUGFIX] Fix lambda_matrix property in GMLVQ

This commit is contained in:
Jensun Ravichandran 2021-05-10 14:09:25 +02:00
parent c6e06ceaa4
commit ed03ab168e

View File

@ -200,8 +200,8 @@ class GMLVQ(GLVQ):
@property
def lambda_matrix(self):
omega = self.omega_layer.weight
lam = omega @ omega.T
omega = self.omega_layer.weight # (latent_dim, input_dim)
lam = omega.T @ omega
return lam.detach().cpu()
def show_lambda(self):