scalping dash also works initially

This commit is contained in:
Dobromir Popov
2025-05-26 16:02:40 +03:00
parent 39942386b1
commit c97177aa88
39 changed files with 7272 additions and 1076 deletions

View File

@ -572,9 +572,17 @@ class EnhancedCNNTrainer:
def get_model(self) -> EnhancedCNNModel:
"""Get the trained model"""
return self.model
def close_tensorboard(self):
"""Close TensorBoard writer if it exists"""
if hasattr(self, 'writer') and self.writer:
try:
self.writer.close()
except:
pass
def __del__(self):
"""Cleanup"""
"""Cleanup when object is destroyed"""
self.close_tensorboard()
def main():