Skip to content

Commit

Permalink
Fix incorrect param handling in dataset_base init
Browse files Browse the repository at this point in the history
  • Loading branch information
fdalvi committed Sep 11, 2023
1 parent f46908f commit c96fbe3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions llmebench/datasets/dataset_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class DatasetBase(ABC):
Attributes
----------
None
data_dir : str
Base path of data containing all datasets. Defaults to "data" in the current
working directory.
Methods
-------
Expand All @@ -50,8 +52,8 @@ class DatasetBase(ABC):
"""

def __init__(self, **kwargs):
self.data_dir = kwargs.get("data_dir", "data")
def __init__(self, data_dir="data", **kwargs):
self.data_dir = data_dir

@abstractmethod
def metadata(self):
Expand Down

0 comments on commit c96fbe3

Please sign in to comment.