MCPcopy
hub / github.com/tensorlayer/TensorLayer / delete_training_log

Method delete_training_log

tensorlayer/db.py:474–496  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

_fill_project_infoMethod · 0.95

Tested by

no test coverage detected