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

Problem reshaping the data #43

Closed
filipelauar opened this issue Jun 25, 2020 · 0 comments
Closed

Problem reshaping the data #43

filipelauar opened this issue Jun 25, 2020 · 0 comments

Comments

@filipelauar
Copy link

filipelauar commented Jun 25, 2020

Hi, I'm having troubles runing the code because of the function gm.fit(data[:, id_].reshape([-1, 1])) in the fit method of the BGMTransformer class, line 310.

It seems that the reshape made by the function data[:, id_].reshape([-1, 1]) leads to an error '(slice(None, None, None), 2)' is an invalid key. I tried to reshape by another methods like using loc or iloc, which works from terminal but I'm geting the same error when I change the function in the scrip. I don't know what to do now.

I loaded my own dataset and tried to run but I can't because of the error. That's what I am doing:

from sdgym.synthesizers.tvae import TVAESynthesizer
tvae = TVAESynthesizer()
tvae.fit(my_data, my_discrete_columns, my_ordinal_columns)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant