[BUGFIX] Fix lambda_matrix property in GMLVQ
This commit is contained in:
parent
c6e06ceaa4
commit
ed03ab168e
@ -200,8 +200,8 @@ class GMLVQ(GLVQ):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def lambda_matrix(self):
|
def lambda_matrix(self):
|
||||||
omega = self.omega_layer.weight
|
omega = self.omega_layer.weight # (latent_dim, input_dim)
|
||||||
lam = omega @ omega.T
|
lam = omega.T @ omega
|
||||||
return lam.detach().cpu()
|
return lam.detach().cpu()
|
||||||
|
|
||||||
def show_lambda(self):
|
def show_lambda(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user