-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix size mismatch error when
CatToNumTransform
sees only a subset o…
…f labels at test time (#446) Fixes this: ```console $ python benchmark/data_frame_benchmark.py --scale large --idx 1 --model ExcelFormer --task_type multiclass_classification Downloading https://archive.ics.uci.edu/static/public/158/poker+hand.zip Traceback (most recent call last): File "<console>", line 1, in <module> File "/home/aki/work/github.com/pyg-team/pytorch-frame/torch_frame/transforms/fittable_base_transform.py", line 25, in __call__ return self.forward(copy.copy(tf)) File "/home/aki/work/github.com/pyg-team/pytorch-frame/torch_frame/transforms/fittable_base_transform.py", line 88, in forward transformed_tf = self._forward(tf) File "/home/aki/work/github.com/pyg-team/pytorch-frame/torch_frame/transforms/cat_to_num_transform.py", line 133, in _forward (num_classes - 1)] = ((v + target_mean) / RuntimeError: The size of tensor a (7) must match the size of tensor b (9) at non-singleton dimension 1 ``` The benchmark result will be added in a follow-up.
- Loading branch information
1 parent
63cafb7
commit 2285c6a
Showing
3 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters