Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreFCruz committed Jun 27, 2024
1 parent 9708a28 commit a7d7bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions folktexts/cli/launch_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# Function that defines common settings among all LLM-as-clf experiments
def make_llm_as_clf_experiment(
model_name: str,
task_name: str,
task: str,
results_root_dir: str,
**kwargs,
) -> Experiment:
Expand Down Expand Up @@ -114,7 +114,7 @@ def make_llm_as_clf_experiment(
executable_path=EXECUTABLE_PATH.as_posix(),
kwargs=dict(
model=model_path,
task_name=task_name,
task=task,
**experiment_kwargs,
),
**job_kwargs,
Expand All @@ -138,7 +138,7 @@ def get_llm_results_folder(exp: Experiment) -> str:
"""
return (
f"model-{Path(exp.model).name}."
f"dataset-{exp.task_name}"
f"dataset-{exp.task}"
)


Expand Down Expand Up @@ -211,7 +211,7 @@ def main():
all_experiments = [
make_llm_as_clf_experiment(
model_name=model,
task_name=task,
task=task,
results_root_dir=args.results_root_dir,
**extra_kwargs,
)
Expand Down

0 comments on commit a7d7bad

Please sign in to comment.