Fasai - ModuleAtttributeError - EmbeddingDotBias

I am a newcomer to building recommender system - I followed various instructions and getting stuck at one place - ie predicting from a trained model.

Here are my versions

System version: 3.8.5 (default, Sep 4 2020, 07:30:14)
[GCC 7.3.0]
Pandas version: 1.1.3
Fast AI version: 2.3.0
Torch version: 1.7.1
Cuda Available: True
CuDNN Enabled: True

This module learner.data.train_ds.x.classes.values() is suggested by many links to get the users and items associated to the trained model. But I am getting the bellow error

ModuleAttributeError: ‘EmbeddingDotBias’ object has no attribute ‘data’

I would much appreciate any help to overcome this issue

Thanks a bunch-

I found the issue -

fastAI version 1.0.61 has the routine learner.data.train_ds.x.classes.values() but it is not available in fastAI version 2.3.0 -

  • Lot of shared samples in the net seems to be using routines from 1.0.61 but this version has other performance related problems.

How one can find out how the routines in 1.0.61 replaced in version 2.3.0

Any help is much apprecited


Just checking again to get some help on my question above - Much appreciate your help …

Maybe you’re looking for learn.dls.classes?