-
Notifications
You must be signed in to change notification settings - Fork 165
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
transformer (forward pass) #10
Comments
Hi, |
Thank you so much for the answer! |
No, We refer to the window size as |
Fantastic, but I still don't get it :) |
In your case:
You don't have to break the list into size windows, the transformer will do it for you using the |
Dude, I really appreciate it. |
I think I misled you myself. |
Ok I think I see where you're going. In that case, your values for |
In this case, there is a question. |
Of course, you can try it ? |
Excuse me,could you please tell me is there any relevant paper about this code?I want to study it in depth. |
Hi, I am trying to use a univariate time series dataset. I got this error: KeyError Traceback (most recent call last) pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item() pandas_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item() KeyError: 521170 The above exception was the direct cause of the following exception: KeyError Traceback (most recent call last) ~\anaconda3\lib\site-packages\torch\utils\data\dataloader.py in next(self) ~\anaconda3\lib\site-packages\torch\utils\data\dataloader.py in _next_data(self) ~\anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py in fetch(self, possibly_batched_index) ~\anaconda3\lib\site-packages\torch\utils\data_utils\fetch.py in (.0) ~\anaconda3\lib\site-packages\torch\utils\data\dataset.py in getitem(self, idx) ~\anaconda3\lib\site-packages\pandas\core\frame.py in getitem(self, key) ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) KeyError: 521170 I'd appreciate it if you let me know if your code is suitable for the univariate time series. And how to solve this error? Thanks |
Hi, this seems to be an issue with Pandas, as you can see in the last stack of the Traceback. Did you try to feed a pandas Dataframe directly to the trainer ? You most likely need to modify the dataloader class to match your dataset. In the future, please open a new issue when discussing new/different problems. Thanks ! |
Sorry, I am new to GitHub. |
I'll answer on the new issue :p closing this one as there is no longer any activity. |
Parameters: | x (Tensor) – torch.Tensor of shape (batch_size, K, d_input).
What is K?
The text was updated successfully, but these errors were encountered: