dmlc / dmlc/mxnet-notebooks

Error when running collaborative-dl.ipynb

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
606
Forks
315
PR merge metrics
No merged PRs in 30d

Description

Traceback:

AttributeError Traceback (most recent call last)
in ()
24 fp.close()
25
---> 26 cal_rec(1,8)

in cal_rec(p, cut)
17 l_rec = list(zip(*pl)[0])[:cut]
18 s_rec = set(l_rec)
---> 19 s_true = set(np.where(R_true[i,:]>0)[1].A1)
20 cnt_hit = len(s_rec.intersection(s_true))
21 fp.write('%d:' % cnt_hit)

AttributeError: 'numpy.ndarray' object has no attribute 'A1'

@aileli

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.