feat: add omega parameter api
This commit is contained in:
parent
e0abb1f3de
commit
ec294bdd37
@ -137,3 +137,12 @@ class OmegaComparisonMixin(SimpleComparisonMixin):
|
|||||||
'''
|
'''
|
||||||
lam = self.lambda_matrix
|
lam = self.lambda_matrix
|
||||||
return lam.abs().sum(0)
|
return lam.abs().sum(0)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def parameter_omega(self):
|
||||||
|
return self._omega
|
||||||
|
|
||||||
|
@parameter_omega.setter
|
||||||
|
def parameter_omega(self, new_omega):
|
||||||
|
with torch.no_grad():
|
||||||
|
self._omega.data.copy_(new_omega)
|
||||||
|
Loading…
Reference in New Issue
Block a user