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

NaN after trained rbig transform #13

Open
gzhu06 opened this issue Mar 2, 2021 · 2 comments
Open

NaN after trained rbig transform #13

gzhu06 opened this issue Mar 2, 2021 · 2 comments

Comments

@gzhu06
Copy link

gzhu06 commented Mar 2, 2021

First of all, thanks for the paper and code, it's very inspiring.

Specifically, first of all, I tried to generate 100 classes of vectors (each class contains 300 samples). These vectors follow multivariate student t distribution of 100 class-dependent means and variances. Then I split these 100 classes into 80 and 20 for training and inferencing respectively. Finally, I try to use rbig following:

#rBIG
n_layers = 1000
rotation_type = 'pca'
random_state = 123
zero_tolerance = 10 # I also tried 60

#Initialize RBIG class
rbig_model = RBIG(n_layers=n_layers, rotation_type=rotation_type, random_state=random_state, zero_tolerance=zero_tolerance)

train_dataset_rbig = rbig_model.fit_transform(train_dataset)
test_dataset_rbig = rbig_model.transform(test_dataset)

then train_dataset_rbig is Okay, but NaN appears in test_dataset_rbig.

Am I wrongly using rbig or something else?

Thanks!

@jejjohnson
Copy link
Member

Hi thanks for you interest! 

So in order to debug, would you be able to provide a minimal working code example? Then maybe I could see if there is an issue. My first thought might be a type issue but I'm not sure. Let me know!

@gzhu06
Copy link
Author

gzhu06 commented Mar 2, 2021

You can download this toy.py.zip to see the working code. (just updated)
toy.py.zip

thank you so much!

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

2 participants