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
KeyError while sampling using freshly trained PAR model #943
Comments
Dear @npatki thank you in advance for your support! I´m having a similar issue. Here I describe it: Environment Details SDV version: 0.16.0 Error: The above exception was the direct cause of the following exception:
Attached you will find .py file and .pkl file with data |
I understand what´s going on. My Time column is float-type, PAR allows only Data-Time type though... |
@yamidibarra, I'm having the same issue. Time column needing to be in date time format. |
Hi everyone, Yes @yamidibarra, I agree with you. Issue #808 is likely the root cause for all these errors: It is a known issue that the PAR model currently produces a sampling error when Does this accurately describe everyone's scenario? If so, I can close this issue in favor of #808 for tracking. |
BTW -- @DamianUS, thanks for filing this issue! I will delete the comments in #935 since you copied it over here @yamidibarra, re the link:
The text of the link is correct by the hyperlink is pointing to some other URL. You should be able to open the page if you click on this: https://sdv.dev/SDV/user_guides/timeseries/par.html. |
yes, it resolves this specific issue. Here my workaround. I´ll open up another issue regarding the synthetic data. I have some questions and I would appreciate your opinion dear @npatki
|
Great, thanks for confirming! I'll close this issue in favor of #808. Please feel free to reply if you continue to see a |
Hi, I am facing the same KeyError issue in PARsynthesizer as here, even though p.s. the KeyError that I get is from the
|
@mohammedsabiya Thanks for filing! We'll follow up in the new issue, as it's been some time since this original one was resolved. |
Environment Details
Please indicate the following details about the environment in which you found the bug:
SDV version: 0.16.0
Python version: 3.8.13 (default, May 8 2022, 17:48:02) \n[Clang 13.1.6 (clang-1316.0.21.2)]
Operating System: Macbook Pro M1 Mac OS X 12.0.1
Error description
The key error is also being raised when trying to sample from a freshly-trained PAR model in v0.16.0.
I tried both passing the field types metadata and without it, nothing seems to help.
I printed the model metadata just to check if the model inferred properly the data types and everything seems correct.
Here I attach the code used just in case it helps (this is the last version used in which the model infers the field types):
When trying to sample:
Maybe I'm not doing something properly. I'm new to the library!
The text was updated successfully, but these errors were encountered: