Skip to content

Commit afe6e18

Browse files
committed
Added a comment on what independent_columns does during transformer fitting
1 parent f65d432 commit afe6e18

File tree

1 file changed

+4
-0
lines changed
  • src/sensai/data_transformation

1 file changed

+4
-0
lines changed

src/sensai/data_transformation/dft.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ def _tostring_additional_entries(self) -> Dict[str, Any]:
715715
def _fit(self, df: pd.DataFrame):
716716
matched_rules_by_column = {}
717717
self._rules = []
718+
# For rules matching multiple columns, if independent_columns is False, the columns
719+
# will be concatenated and treated as a single column for fitting the transformer.
720+
# Note that transformers follow sklearn interfaces, thus just passing an array
721+
# to them will learn a per-column-transformation. This will be the case for independent_columns=True.
718722
for rule in self._userRules:
719723
matching_columns = rule.matching_columns(df.columns)
720724
for c in matching_columns:

0 commit comments

Comments
 (0)