dataset_alt.py - cmikke97/Automatic-Malware-Signature-Generation GitHub Wiki

In this page

Imported Modules



Back to top

Classes and functions

Dataset (class) - Pre-processed dataset class.

  • __init__(self, ds_root, mode, n_samples, return_shas) (member function) - Initialize Dataset class.
    • ds_root (arg) - Pre-processed dataset root directory (where to find .dat files)
    • mode (arg) - Mode of use of the dataset object (it may be 'train', 'validation' or 'test') (default: 'train')
    • n_samples (arg) - Number of samples to consider (used just to access the right pre-processed files) (default: None)
    • return_shas (arg) - Whether to return the sha256 of the data points or not (default: False)
  • __len__(self) *(member function) - Get dataset total length.
  • __get_as_tensors__(self) (member function) - Get dataset tensors (numpy memmap arrays).

Back to top

⚠️ **GitHub.com Fallback** ⚠️