Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错: raise KeyError(key) from err KeyError: 'label' #19

Open
yandong667 opened this issue Oct 27, 2023 · 2 comments
Open

报错: raise KeyError(key) from err KeyError: 'label' #19

yandong667 opened this issue Oct 27, 2023 · 2 comments

Comments

@yandong667
Copy link

当我运行几个混合推荐算法时,如:IPJF。都统一报错:缺少label标签。但是我的数据集中的inter已经包含了label。
image
另外我的yaml配置信息为(我认为没毛病):

Atomic File Format

field_separator: "\t"
seq_separator: " "

Common Features

USER_ID_FIELD: user_id
ITEM_ID_FIELD: job_id
#RATING_FIELD: rating
#TIME_FIELD: timestamp
DIRECT_FIELD: direct
seq_len: ~

Label for Point-wise DataLoader

LABEL_FIELD: label
threshold:
label: 0.5

NegSample Prefix for Pair-wise DataLoader

NEG_PREFIX: neg_

Text Model Needed

USER_DOC_FIELD: user_doc
ITEM_DOC_FIELD: job_doc

Selectively Loading

load_col:
inter: [user_id, job_id, direct, label]

user: [user_id, live_city_id]

item: [job_id, city]

udoc: [user_id, user_doc]
idoc: [job_id, job_doc]

unload_col: ~
unused_col: ~

Filtering

rm_dup_inter: ~
val_interval: ~
filter_inter_by_user_or_item: True
user_inter_num_interval: ~
item_inter_num_interval: ~

Preprocessing

alias_of_user_id: ~
alias_of_item_id: ~
alias_of_entity_id: ~
alias_of_relation_id: ~
preload_weight: ~
normalize_field: ~

biliteral: True

encoding: utf-8

@licheng-enginner
Copy link

您好,这个问题解决了吗

@xiaosajxy
Copy link

您好,这个问题解决了吗

您好,我今天也遇到了同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants