Skip to content

Commit

Permalink
Update token_tags field to match the new order between time-series …
Browse files Browse the repository at this point in the history
…and tabular attributes
  • Loading branch information
nathanpainchaud committed Jul 22, 2024
1 parent 2797424 commit af24bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions didactic/tasks/cardiac_multimodal_representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def __init__(
self.hparams.lr = None

# Add shortcut to token labels to avoid downstream applications having to determine them from hyperparameters
self.token_tags = tabular_attrs + tuple(
"/".join([view, attr]) for view, attr in itertools.product(views, time_series_attrs)
self.token_tags = (
tuple("/".join([view, attr]) for view, attr in itertools.product(views, time_series_attrs)) + tabular_attrs
)
if cls_token:
self.token_tags = self.token_tags + ("CLS",)
Expand Down

0 comments on commit af24bb7

Please sign in to comment.