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

SNN_RBM shape mismatch #16

Open
CorpaciLC opened this issue Jan 16, 2022 · 0 comments
Open

SNN_RBM shape mismatch #16

CorpaciLC opened this issue Jan 16, 2022 · 0 comments

Comments

@CorpaciLC
Copy link

Hello,

When trying to run SNN_RBM on the 1458 campaign, we get the following error.

'''
../../make-ipinyou-data/1458/train.yzx.txt
drop_mlp4da.py|ad:1458|drop:1|b_size:1000 | X:133465 | Hidden 0:300 | Hidden 1:300 | Hidden 2:100 | L_r:0.0006 | activation1:tanh | lambda:0.0001
training RBM
line: 133465
line: 300
Traceback (most recent call last):
File "SNN_RBM.py", line 81, in
ww0,bb0,ww1,bb1,ww2,bb2=gbrbm.get_rbm_weights(train_file,arr,ncases=train_size,batch_size=100000,fm_model_file=fm_model_file)
File "C:\Users\corpa\Master\Sem3\Experiment Design For Data Science\Assignment2\deep-ctr\python\sampling_based_gaussian_binary_rbm_sparse.py", line 533, in get_rbm_weights
trainer.train(file,epochs,ncases,cdsteps=1,k=k)
File "C:\Users\corpa\Master\Sem3\Experiment Design For Data Science\Assignment2\deep-ctr\python\sampling_based_gaussian_binary_rbm_sparse.py", line 448, in train
thisweightstep -= np.dot(vis.T, hid)
ValueError: operands could not be broadcast together with shapes (4,300) (32,300) (4,300)
'''

Any hard-sought solutions at hand?

Thanks

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