Skip to content

Commit

Permalink
added meds_exclude_tables to the login meds_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoPang committed Oct 29, 2024
1 parent 4c93a7a commit a28d7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def create_dataset_from_meds_reader(
LOG.info("The inpatient_att_function_type: %s", data_args.inpatient_att_function_type)
LOG.info("The include_auxiliary_token: %s", data_args.include_auxiliary_token)
LOG.info("The include_demographic_prompt: %s", data_args.include_demographic_prompt)
LOG.info("The meds_exclude_tables: %s", "\n".join(data_args.meds_exclude_tables))

train_dataset = _create_cehrbert_data_from_meds(
data_args=data_args,
Expand Down
2 changes: 1 addition & 1 deletion src/cehrbert/runners/hf_runner_argument_dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class DataTrainingArguments:
},
)
meds_exclude_tables: Optional[List[str]] = dataclasses.field(
default=list,
default_factory=list,
metadata={"help": "The tables to exclude in the conversion e.g. measurement"},
)
# TODO: Python 3.9/10 do not support dynamic unpacking, we have to manually provide the entire
Expand Down

0 comments on commit a28d7a1

Please sign in to comment.