- added train
- refactored CdTrain
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Status:
|
||||
def __init__(self):
|
||||
self.progress = 0
|
||||
self.err = -1.0
|
||||
self.err_total = -1.0
|
||||
self.l1 = -1.0
|
||||
self.l2 = -1.0
|
||||
|
||||
def on_change(self) -> bool:
|
||||
print(self)
|
||||
return True
|
||||
|
||||
def __repr__(self):
|
||||
return f"Progress: {self.progress}"
|
||||
Reference in New Issue
Block a user