kMoL is a machine learning library for drug discovery and life sciences, with federated learning capabilities.
36
stars
6
forks
source link
How to solve the trial failed because of target size input and output is different? #10
Closed
eljalaludin closed 1 year ago
I am trying to run a multi-task learning model using the CYPs dataset.
But, whenever I ran the script, it resulted in the same error.
0:00:01 | 2023-10-05 06:46:16 | [[37m INFO [0m | helpers.py:204] > Dataset Cache Key: 63b309d3e0e19722ca9d6e8e5f547832 0:00:01 | 2023-10-05 06:46:16 | [[37m INFO [0m | preprocessor.py:220] > Starting featurization... All jobs progress: 笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤笏≫煤 5/5 100% 0:00:00 0:01:30 Epoch 1 | Train Loss: 0.00000 0/53 0% -:--:-- 0:00:01 0:02:23 | 2023-10-05 06:48:37 | [[31m ERROR [0m | run.py:71] > [Trial Failed] Target size (torch.Size([192, 8])) must be the same as input size (torch.Size([192, 5])) 0:02:23 | 2023-10-05 06:48:37 | [[37m INFO [0m | helpers.py:204] > Dataset Cache Key: 63b309d3e0e19722ca9d6e8e5f547832 Epoch 1 | Train Loss: 0.00000 0/159 0% -:--:-- 0:00:00 0:02:39 | 2023-10-05 06:48:54 | [[31m ERROR [0m | run.py:71] > [Trial Failed] Target size (torch.Size([64, 8])) must be the same as input size (torch.Size([64, 5])) 0:02:40 | 2023-10-05 06:48:54 | [[37m INFO [0m | helpers.py:204] > Dataset Cache Key: 63b309d3e0e19722ca9d6e8e5f547832 Epoch 1 | Train Loss: 0.00000 0/80 0% -:--:-- 0:00:00
Do you have any idea why this happened?