We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0eb1c8 commit a288d8dCopy full SHA for a288d8d
mambular/data_utils/dataset.py
@@ -44,7 +44,8 @@ def __init__(
44
self.labels = None # No labels in prediction mode
45
46
def __len__(self):
47
- return len(self.num_features_list[0]) # Use numerical features length
+ _feats = self.num_features_list if self.num_features_list else cat_features_list
48
+ return len(_feats[0])
49
50
def __getitem__(self, idx):
51
"""Retrieves the features and label for a given index.
0 commit comments