[BUGFIX] Fix lambda_matrix property in GMLVQ
This commit is contained in:
parent
c6e06ceaa4
commit
ed03ab168e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user