RUCAIBox / RecBole

A unified, comprehensive and efficient recommendation library
https://recbole.io/
MIT License
3.37k stars 606 forks source link

AttributeError: 'SequentialDataset' object has no attribute 'item_id_list_field' #2016

Closed wbcat132 closed 6 months ago

wbcat132 commented 6 months ago

this is my data,this photo is the first one part of data and this is my config config the final picture is my run_recbole.py ,i just set the "model" and "dataset" and the "config_files" run_recbole How do I modify these files?,please help me,tk

wbcat132 commented 6 months ago

field_separator: "\t" seq_separator: " " USER_ID_FIELD: user_id ITEM_ID_FIELD: venue_id LABEL_FIELD: label NEGPREFIX: neg benchmark_filename: [train, val, test] alias_of_item_id: [item_id_list] load_col: inter: [user_id, venue_id,item_id_list,label] epochs: 500 train_batch_size: 1024 eval_batch_size: 1024 eval_args: split: {'LS': 'valid_and_test'} group_by: ~ mode: labeled order: TO valid_metric: AUC metrics: ['AUC', 'LogLoss'] loss_type: 'BPR'

zhengbw0324 commented 6 months ago

@wbcat132 Hello! The sequential recommendation model does not support AUC and logloss metrics. You can refer to the experimental setup here.

wbcat132 commented 6 months ago

@zhengbw0324 why i use this config can run the sequential recommendation field_separator: "\t" seq_separator: " " USER_ID_FIELD: user_id ITEM_ID_FIELD: venue_id TIME_FIELD: timestamp NEGPREFIX: neg load_col: inter: [user_id, venue_id,timestamp]

epochs: 500 train_batch_size: 1024 eval_batch_size: 1024 training_neg_sample_num:uniform: 1

eval_args: split: {'RS': [0.8, 0.1, 0.1]} group_by: ~ mode: uni1 order: TO valid_metric: AUC metrics: ['AUC', 'LogLoss'] loss_type: 'BPR'

wbcat132 commented 6 months ago

i have settle the problem, thank you. this is my config: field_separator: "\t" seq_separator: " " LABEL_FIELD: label benchmark_filename: [train, val, test]

load_col: inter: [user_id,item_id_list,item_id,label] alias_of_item_id: [item_id_list] train_neg_sample_args: ~ unisrec_transform: ~ ITEM_LIST_LENGTH_FIELD: item_length LIST_SUFFIX: _list MAX_ITEM_LIST_LENGTH: 2696 epochs: 500 train_batch_size: 1024 eval_batch_size: 1024 eval_args: split: ~ group_by: user mode: labeled order: TO valid_metric: AUC metrics: ['AUC', 'LogLoss'] loss_type: 'BPR'