Commit 6a2620ad authored by haileyschoelkopf's avatar haileyschoelkopf
Browse files

remove output_base_path

parent 93b7a418
...@@ -45,7 +45,6 @@ def simple_evaluate( ...@@ -45,7 +45,6 @@ def simple_evaluate(
check_integrity=False, check_integrity=False,
decontamination_ngrams_path=None, decontamination_ngrams_path=None,
write_out=False, write_out=False,
output_base_path=None,
): ):
"""Instantiate and evaluate a model on a list of tasks. """Instantiate and evaluate a model on a list of tasks.
...@@ -74,8 +73,6 @@ def simple_evaluate( ...@@ -74,8 +73,6 @@ def simple_evaluate(
Whether to run the relevant part of the test suite for the tasks Whether to run the relevant part of the test suite for the tasks
:param write_out: bool :param write_out: bool
If True, write details about prompts and logits to json for all tasks If True, write details about prompts and logits to json for all tasks
:param output_base_path: str, optional
Directory to which detailed eval info will be written. Defaults to present working dir.
:return :return
Dictionary of results Dictionary of results
""" """
...@@ -121,7 +118,6 @@ def simple_evaluate( ...@@ -121,7 +118,6 @@ def simple_evaluate(
bootstrap_iters=bootstrap_iters, bootstrap_iters=bootstrap_iters,
decontamination_ngrams_path=decontamination_ngrams_path, decontamination_ngrams_path=decontamination_ngrams_path,
write_out=write_out, write_out=write_out,
output_base_path=output_base_path,
) )
if lm.rank == 0: if lm.rank == 0:
...@@ -158,7 +154,6 @@ def evaluate( ...@@ -158,7 +154,6 @@ def evaluate(
bootstrap_iters=100000, bootstrap_iters=100000,
decontamination_ngrams_path=None, decontamination_ngrams_path=None,
write_out=False, write_out=False,
output_base_path=None,
): ):
"""Instantiate and evaluate a model on a list of tasks. """Instantiate and evaluate a model on a list of tasks.
...@@ -174,8 +169,6 @@ def evaluate( ...@@ -174,8 +169,6 @@ def evaluate(
Number of iterations for bootstrap statistics Number of iterations for bootstrap statistics
:param write_out: bool :param write_out: bool
If True, write all prompts, logits and metrics to json for offline analysis If True, write all prompts, logits and metrics to json for offline analysis
:param output_base_path: str, optional
Directory to which detailed eval info will be written. Defaults to present working dir
:return :return
Dictionary of results Dictionary of results
""" """
......
...@@ -43,7 +43,6 @@ def parse_args(): ...@@ -43,7 +43,6 @@ def parse_args():
parser.add_argument("--decontamination_ngrams_path", default=None) parser.add_argument("--decontamination_ngrams_path", default=None)
parser.add_argument("--check_integrity", action="store_true") parser.add_argument("--check_integrity", action="store_true")
parser.add_argument("--write_out", action="store_true", default=False) parser.add_argument("--write_out", action="store_true", default=False)
parser.add_argument("--output_base_path", type=str, default=None)
return parser.parse_args() return parser.parse_args()
...@@ -90,7 +89,6 @@ def main(): ...@@ -90,7 +89,6 @@ def main():
decontamination_ngrams_path=args.decontamination_ngrams_path, decontamination_ngrams_path=args.decontamination_ngrams_path,
check_integrity=args.check_integrity, check_integrity=args.check_integrity,
write_out=args.write_out, write_out=args.write_out,
output_base_path=args.output_base_path,
) )
if results is not None: if results is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment