Deletes training log. Parameters ----------- kwargs : logging information Find items to delete, leave it empty to delete all log. Examples --------- Save training log >>> db.save_training_log(accuracy=0.33) >>> db.save_tra
(self, **kwargs)
| 472 | logging.info("[Database] test log: " + _log) |
| 473 | |
| 474 | def delete_training_log(self, **kwargs): |
| 475 | """Deletes training log. |
| 476 | |
| 477 | Parameters |
| 478 | ----------- |
| 479 | kwargs : logging information |
| 480 | Find items to delete, leave it empty to delete all log. |
| 481 | |
| 482 | Examples |
| 483 | --------- |
| 484 | Save training log |
| 485 | >>> db.save_training_log(accuracy=0.33) |
| 486 | >>> db.save_training_log(accuracy=0.44) |
| 487 | |
| 488 | Delete logs that match the requirement |
| 489 | >>> db.delete_training_log(accuracy=0.33) |
| 490 | |
| 491 | Delete all logs |
| 492 | >>> db.delete_training_log() |
| 493 | """ |
| 494 | self._fill_project_info(kwargs) |
| 495 | self.db.TrainLog.delete_many(kwargs) |
| 496 | logging.info("[Database] Delete TrainLog SUCCESS") |
| 497 | |
| 498 | def delete_validation_log(self, **kwargs): |
| 499 | """Deletes validation log. |
nothing calls this directly
no test coverage detected