Skip to content

Commit

Permalink
fixed ACSDataset assignment of new task
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreFCruz committed Jun 24, 2024
1 parent 3967801 commit a2d9f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions folktexts/acs/acs_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
)

@classmethod
def make_acs_dataset(
def make_from_task(
cls,
task: str | ACSTaskMetadata,
cache_dir: str | Path = None,
Expand Down Expand Up @@ -113,8 +113,7 @@ def task(self) -> ACSTaskMetadata:

@task.setter
def task(self, new_task: ACSTaskMetadata):
import ipdb; ipdb.set_trace()
self._data = self._parse_task_data(self._full_data, new_task)
self._data = self._parse_task_data(self._full_acs_data, new_task)
super().task = new_task

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion folktexts/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def make_acs_benchmark(

# Fetch ACS task and dataset
acs_task = ACSTaskMetadata.get_task(task_name)
acs_dataset = ACSDataset.make_acs_dataset(
acs_dataset = ACSDataset.make_from_task(
task_obj=acs_task,
cache_dir=data_dir,
**acs_dataset_configs)
Expand Down

0 comments on commit a2d9f62

Please sign in to comment.