rixwew / pytorch-fm

Factorization Machine models in PyTorch
MIT License
1.03k stars 225 forks source link

ModuleNotFoundError: No module named 'torchfm.model.hofm' #26

Open caglaacun opened 4 years ago

caglaacun commented 4 years ago

When I run the main.py, I get the following error:

Traceback (most recent call last): File "main.py", line 16, in from torchfm.model.hofm import HighOrderFactorizationMachineModel ModuleNotFoundError: No module named 'torchfm.model.hofm'

BitHub00 commented 2 years ago

try add this in the head of the "main.py": sys.path.append('/XXX/pytorch-fm'), where XXX is the directory you install pytorch-fm refer to Stack Overflow

Chrissie-Law commented 2 years ago

this error occurs if you use "pip install torchfm" try to replace the local package "torchfm" with the corresponding files from this repository

caglaacun commented 2 years ago

this error occurs if you use "pip install torchfm" try to replace the local package "torchfm" with the corresponding files from this repository

Thank a lot!