Skip to content

Commit

Permalink
added patient_splits_folder to evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoPang committed Jan 15, 2025
1 parent 5bcbd61 commit 8e9161b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cehrbert/evaluations/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ def evaluate_baseline_models(args):
# Load the training data
dataset = pd.read_parquet(args.data_path)
test_person_ids = None
if args.test_person_ids_path:
test_person_ids = pd.read_parquet(args.test_person_ids_path)
if args.patient_splits_folder:
patient_splits = pd.read_parquet(args.patient_splits_folder)
test_person_ids = patient_splits[patient_splits.split == "test"]

LogisticRegressionModelEvaluator(
dataset=dataset,
Expand Down

0 comments on commit 8e9161b

Please sign in to comment.