Skip to content

Commit a288d8d

Browse files
authored
Update dataset.py
1 parent e0eb1c8 commit a288d8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mambular/data_utils/dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def __init__(
4444
self.labels = None # No labels in prediction mode
4545

4646
def __len__(self):
47-
return len(self.num_features_list[0]) # Use numerical features length
47+
_feats = self.num_features_list if self.num_features_list else cat_features_list
48+
return len(_feats[0])
4849

4950
def __getitem__(self, idx):
5051
"""Retrieves the features and label for a given index.

0 commit comments

Comments
 (0)