Closed zhaosiyuan1098 closed 1 year ago
Probably because your new data was not normalized before passing it in the model? Yours is a typical result of a non-normalized/scaled data input.
Thanks for your help! I finally found out that this problem was caused by my new dataset and I have solved it successfully~
Hello, I'm a beginner with tsai .
I have successfully trained a time series classification model using tsai, and here is my code:
However, when I use the
Learner.get_X_preds
to predict the classification results, I encounter some issues:I get satisfactory results,most
valid_targets
equal thevalid_preds
and thevalid_probas
looks reasonable.then I get the output:
(tensor([[0.2632, 0.2575, 0.2431, 0.2362], [0.2632, 0.2575, 0.2431, 0.2363], [0.2631, 0.2575, 0.2431, 0.2363], [0.2631, 0.2575, 0.2431, 0.2363], [0.2632, 0.2575, 0.2431, 0.2363], [0.2632, 0.2575, 0.2431, 0.2362], [0.2632, 0.2575, 0.2431, 0.2362], [0.2631, 0.2575, 0.2432, 0.2362],
o /s : Windows-10-10.0.22000-SP0 python : 3.9.16 tsai : 0.3.5 fastai : 2.7.11 fastcore : 1.5.29 torch : 1.13.0 device : 1 gpu (['NVIDIA GeForce GTX 1650']) cpu cores : 6 threads per cpu : 2 RAM : 15.85 GB GPU memory : [4.0] GB