fixed status indention
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ class Status:
|
|||||||
print(f"{entity.name}: {key} : {value}{unit}")
|
print(f"{entity.name}: {key} : {value}{unit}")
|
||||||
|
|
||||||
l2_norm = np.sum(np.square(entity.state.w_hv))/entity.state.w_hv.shape[1]
|
l2_norm = np.sum(np.square(entity.state.w_hv))/entity.state.w_hv.shape[1]
|
||||||
print(f"{entity.name}: l2_norm : {l2_norm}")
|
print(f"{entity.name}: l2_norm : {l2_norm}")
|
||||||
|
|
||||||
def on_change(self, entity: Entity, status: dict|None=None) -> bool:
|
def on_change(self, entity: Entity, status: dict|None=None) -> bool:
|
||||||
if status is None:
|
if status is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user