# AutoRec: Rating Prediction with Autoencoders

**URL:** <https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401>\
**Category:** mxnet\
**Created:** [June 29, 2020, 10:55pm UTC](https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401 "2020-06-29T22:55:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![astonzhang](https://yyz2.discourse-cdn.com/free1/user_avatar/d2l.discourse.group/astonzhang/32/52_2.png) [@astonzhang](https://d2l.discourse.group/u/astonzhang)\
**Post date:** [June 29, 2020, 10:55pm UTC](https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401/1 "2020-06-29T22:55:25Z")

</div>

[https://d2l.ai/chapter\_recommender-systems/autorec.html](https://d2l.ai/chapter_recommender-systems/autorec.html)

---

<div class="post-metadata">

**Author:** ![Shishir](https://yyz2.discourse-cdn.com/free1/user_avatar/d2l.discourse.group/shishir/32/857_2.png) [@Shishir](https://d2l.discourse.group/u/Shishir)\
**Post date:** [July 29, 2020, 10:40am UTC](https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401/2 "2020-07-29T10:40:44Z")

</div>

shouldn’t this code:  
test\_iter = gluon.data.DataLoader(np.array( **train** \_inter\_mat), shuffle=False,  
last\_batch=“keep”, batch\_size=1024,  
num\_workers=d2l.get\_dataloader\_workers())  
be like  
test\_iter = gluon.data.DataLoader(np.array( **test** \_inter\_mat), shuffle=False,  
last\_batch=“keep”, batch\_size=1024,  
num\_workers=d2l.get\_dataloader\_workers())

---

<div class="post-metadata">

**Author:** ![AfterDreaming](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@AfterDreaming](https://d2l.discourse.group/u/AfterDreaming)\
**Post date:** [August 16, 2021, 12:09am UTC](https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401/3 "2021-08-16T00:09:23Z")

</div>

I think the example is the user-based AutoRec, not item-basd as mentioned:

" For brevity, here we only introduce the item-based AutoRec."

---

<div class="post-metadata">

**Author:** ![KuanHaoHuang](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@KuanHaoHuang](https://d2l.discourse.group/u/KuanHaoHuang)\
**Post date:** [January 30, 2022, 7:54am UTC](https://d2l.discourse.group/t/autorec-rating-prediction-with-autoencoders/401/4 "2022-01-30T07:54:40Z")

</div>

The sentence is correct. It’s item-based AutoRec.

The input size of the model is `num_users`, which means all users’ (incomplete) ratings to **one single item**.  
The example model takes incomplete feedbacks of one item from all users and predicts what the complete feedbacks of that exact item should be.

Please have a look at the reference: [Sedhain et al., 2015].  
I think getting to know what m & n mean in Figure 1 would be helpful.
