Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarIniOnz committed Jan 21, 2025
1 parent 9ef8d28 commit 2a405db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions medmodels/treatment_effect/matching/neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def match_controls(
control_set (Set[NodeIndex]): Set of control subjects.
treated_set (Set[NodeIndex]): Set of treated subjects.
patients_group (Group): Group of patients in the MedRecord.
essential_covariates (Optional[List[MedRecordAttribute]], optional):
essential_covariates (Optional[Sequence[MedRecordAttribute]], optional):
Covariates that are essential for matching. Defaults to None, meaning
all the attributes of the patients are used.
one_hot_covariates (Optional[List[MedRecordAttribute]], optional):
one_hot_covariates (Optional[Sequence[MedRecordAttribute]], optional):
Covariates that are one-hot encoded for matching. Defaults to None,
meaning all the categorical attributes of the patients are used.
Expand Down
4 changes: 2 additions & 2 deletions medmodels/treatment_effect/matching/propensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def match_controls(
control_set (Set[NodeIndex]): Set of control subjects.
treated_set (Set[NodeIndex]): Set of treated subjects.
patients_group (Group): Group of patients in MedRecord.
essential_covariates (Optional[List[MedRecordAttribute]], optional):
essential_covariates (Optional[Sequence[MedRecordAttribute]], optional):
Covariates that are essential for matching. Defaults to None, meaning
all the attributes of the patients are used.
one_hot_covariates (Optional[List[MedRecordAttribute]], optional):
one_hot_covariates (Optional[Sequence[MedRecordAttribute]], optional):
Covariates that are one-hot encoded for matching. Defaults to None,
meaning all the categorical attributes of the patients are used.
Expand Down
4 changes: 2 additions & 2 deletions medmodels/treatment_effect/treatment_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class TreatmentEffect:
_filter_controls_query: Optional[NodeQuery]

_matching_method: Optional[MatchingMethod]
_matching_essential_covariates: Optional[MedRecordAttributeInputList]
_matching_one_hot_covariates: Optional[MedRecordAttributeInputList]
_matching_essential_covariates: MedRecordAttributeInputList
_matching_one_hot_covariates: MedRecordAttributeInputList
_matching_model: Model
_matching_number_of_neighbors: int
_matching_hyperparameters: Optional[Dict[str, Any]]
Expand Down

0 comments on commit 2a405db

Please sign in to comment.