opt_utils.py - cmikke97/Automatic-Malware-Signature-Generation GitHub Wiki
-
import os- provides a portable way of using operating system dependent functionality - os documentation -
import tempfile- used to create temporary files and directories - tempfile documentation
-
import mlflow- open source platform for managing the end-to-end machine learning lifecycle - mlflow documentation -
import torch- tensor library like NumPy, with strong GPU support - pytorch documentation
get_opt_state(opt, path, epoch) (function) - Load optimizer state from path.
-
opt(arg) - Optimizer -
path(arg) - Path where to find the optimizer checkpoint -
epoch(arg) - Epoch to retrieve the optimizer state of
save_opt_state(opt, epoch) (function) - Save optimizer state to temporary directory and then log it with mlflow.
-
opt(arg) - Optimizer -
epoch(arg) - Epoch to save the optimizer state of