issues
search
zjost
/
blog_code
A repo for holding example code
Apache License 2.0
149
stars
76
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
i have an error in 'Jp = xent(predp, labels).mean() + wd_term'. (IndexError Traceback (most recent call last) Cell In[52], line 1 ----> 1 dW_approx = get_grads((gcn1_out,), sm1, "W", labels, eps=1e-4, wd=opt.wd) 2 db_approx = get_grads((gcn1_out,), sm1, "b", labels, eps=1e-4, wd=opt.wd) Cell In[50], line 16 14 wd_term = wd/2*(cp_flat**2).sum() / labels.shape[0] 15 #print(wd_term) ---> 16 Jp = xent(predp, labels).mean() + wd_term 18 # J(theta - eps) 19 cp_flat[i] = theta - eps Cell In[47], line 8 7 def xent(pred, labels): #fonction de perte d'entropie croisée ----> 8 return -np.log(pred)[np.arange(pred.shape[0]), np.argmax(labels, axis=1)] IndexError: shape mismatch: indexing arrays could not be broadcast together with shapes (34,) (5,) )
#13
yassir156
opened
8 months ago
1
Why is there no bias in the output of GCN layer and why there is linear layer before softmax implementation?
#12
utkarsh0902311047
closed
1 year ago
1
Difficulty in understanding xent function
#11
utkarsh0902311047
closed
1 year ago
1
Bump ipython from 7.16.3 to 8.10.0 in /gcn_citeseer
#10
dependabot[bot]
opened
1 year ago
0
Bump numpy from 1.18.1 to 1.22.0 in /gcn_citeseer
#9
dependabot[bot]
opened
2 years ago
0
Bump numpy from 1.17.4 to 1.22.0 in /adversarial_validation
#8
dependabot[bot]
opened
2 years ago
0
Bump numpy from 1.18.1 to 1.21.0 in /gcn_citeseer
#7
dependabot[bot]
closed
2 years ago
1
Bump numpy from 1.17.4 to 1.21.0 in /adversarial_validation
#6
dependabot[bot]
closed
2 years ago
1
Bump ipython from 7.13.0 to 7.16.3 in /gcn_citeseer
#5
dependabot[bot]
closed
2 years ago
0
Fixing README link
#4
zjost
closed
3 years ago
0
Adding 'gcn from scratch' notebook
#3
zjost
closed
3 years ago
0
Adding message passing example code
#2
zjost
closed
3 years ago
0
Citeseer
#1
zjost
closed
4 years ago
0