Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

another TabTransformer dimension issue #78

Open
duncanmcelfresh opened this issue Dec 1, 2022 · 0 comments
Open

another TabTransformer dimension issue #78

duncanmcelfresh opened this issue Dec 1, 2022 · 0 comments
Labels
bug Something isn't working low-priority

Comments

@duncanmcelfresh
Copy link
Collaborator

occurs on datasets:

  • openml__banknote-authentication__10093
  • openml__blood-transfusion-service-center__10101
  • openml__blood-transfusion-service-center__145836
  • openml__phoneme__9952
  • openml__skin-segmentation__9965
  • openml__sylvine__168912
  • openml__wilt__146820

traceback:

Traceback (most recent call last):
  File "/home/shared/tabzilla/TabSurvey/tabzilla_experiment.py", line 137, in __call__
    result = cross_validation(model, self.dataset, self.time_limit)
  File "/home/shared/tabzilla/TabSurvey/tabzilla_utils.py", line 236, in cross_validation
    loss_history, val_loss_history = curr_model.fit(
  File "/home/shared/tabzilla/TabSurvey/models/tabtransformer.py", line 116, in fit
    loss = loss_func(out, batch_y.to(self.device))
  File "/opt/conda/envs/torch/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/opt/conda/envs/torch/lib/python3.10/site-packages/torch/nn/modules/loss.py", line 713, in forward
    return F.binary_cross_entropy_with_logits(input, target,
  File "/opt/conda/envs/torch/lib/python3.10/site-packages/torch/nn/functional.py", line 3130, in binary_cross_entropy_with_logits
    raise ValueError("Target size ({}) must be the same as input size ({})".format(target.size(), input.size()))
ValueError: Target size (torch.Size([128])) must be the same as input size (torch.Size([]))
@duncanmcelfresh duncanmcelfresh added the bug Something isn't working label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low-priority
Projects
None yet
Development

No branches or pull requests

1 participant