reczoo/BARS

I need to use fusictr2.0+for DIN/DIEN benchmark testing. How should I write the run_expid.py file

Closed this issue · 3 comments

I need to use fusictr2.0+for DIN/DIEN benchmark testing. How should I write the run_expid.py file

What is the reason for the error message when introducing RankDataLoader?

import os
os.chdir(os.path.dirname(os.path.realpath(file)))
import sys
import logging
import fuxictr_version
from fuxictr import datasets
from datetime import datetime
from fuxictr.utils import load_config, set_logger, print_to_json, print_to_list
from fuxictr.features import FeatureMap
from fuxictr.pytorch.dataloaders import RankDataLoader
from fuxictr.pytorch.torch_utils import seed_everything
from fuxictr.preprocess import FeatureProcessor, build_dataset
import src
import gc
import argparse
import os
from pathlib import Path

This is a specific error message:
Traceback (most recent call last):
File "/home/dyy/Prediction-Cache/FuxiCTR/model_zoo/DIEN/run_expid.py", line 35, in
from fuxictr.pytorch.dataloaders import RankDataLoader
ImportError: cannot import name 'RankDataLoader' from 'fuxictr.pytorch.dataloaders' (/home/dyy/miniconda3/envs/deepCtr/lib/python3.7/site-packages/fuxictr/pytorch/dataloaders/init.py)

Please use the exactly the same version specified in the above running steps. In your case, you use run_expid.py in mater but use an old version fuxictr package installed.

cd FuxiCTR/model_zoo/DIEN

The code of the working directory should come from the same version of the your fuxictr installed.