torchdms.data.BinaryMapDataset¶
- class torchdms.data.BinaryMapDataset(samples, targets, original_df, wtseq, target_names, alphabet)[source]¶
Bases:
torch.utils.data.dataset.DatasetBinarymap dataset.
This class organizes the information from the input dataset into a wrapper containing all relevent attributes for training and evaluation.
We also store the original dataframe as it may contain important metadata (such as target variance), but drop redundant columns that are already attributes.
Methods
catfeature_countof_rawregister_datapipe_as_functionregister_functiontarget_countReturn a (min, max) tuple for the value of each target.
Attributes
functionswt_idxs