Deep Factorization Machines

https://d2l.ai/chapter_recommender-systems/deepfm.html

Error running the example code

Traceback (most recent call last):

File “deepfm.py”, line 35, in
data_dir = d2l.download_extract(‘ctr’)
File “/Users/x/Library/Python/3.7/lib/python/site-packages/d2l/d2l.py”, line 340, in download_extract
fname = download(name)
File “/Users/x/Library/Python/3.7/lib/python/site-packages/d2l/d2l.py”, line 331, in download
assert name in DATA_HUB, “%s doesn’t exist” % name
AssertionError: ctr doesn’t exist

You need this before line 35.

d2l.DATA_HUB['ctr'] = (d2l.DATA_URL + 'ctr.zip',

                       'e18327c48c8e8e5c23da714dd614e390d369843f')

Please watch section 16.8 for detail.