Skip to content

Commit 3f9b905

Browse files
committed
forced NaiveMeanEffectsPredictor
1 parent 7e48686 commit 3f9b905

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drevalpy/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def get_parser() -> argparse.ArgumentParser:
4545
"--baselines",
4646
nargs="+",
4747
help="baseline or list of baselines. The baselines are also hpam-tuned and compared to the "
48-
"models, but no randomization or robustness tests are run.",
48+
"models, but no randomization or robustness tests are run. NaiveMeanEffectsPredictor is always run"
49+
"as it is required for evaluation",
4950
)
5051
parser.add_argument(
5152
"--test_mode",
@@ -302,6 +303,11 @@ def main(args) -> None:
302303
baselines = [MODEL_FACTORY[baseline] for baseline in args.baselines]
303304
else:
304305
baselines = []
306+
307+
# NaiveMeanEffectsPredictor is always run as it is needed for evaluation
308+
if "NaiveMeanEffectsPredictor" not in args.baselines:
309+
baselines.append(MODEL_FACTORY["NaiveMeanEffectsPredictor"])
310+
305311
# TODO Allow for custom randomization tests maybe via config file
306312

307313
if args.randomization_mode[0] == "None":

0 commit comments

Comments
 (0)