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

Swing 部分代码的数据集 #113

Open
mxuax opened this issue Sep 10, 2024 · 1 comment
Open

Swing 部分代码的数据集 #113

mxuax opened this issue Sep 10, 2024 · 1 comment

Comments

@mxuax
Copy link

mxuax commented Sep 10, 2024

Swing 中用于练习的代码使用的数据集为“ratings_final” 但是没有在dataset里找到对应的数据集
if name == "main":
train_data_path = "./ratings_final.txt"
item_sim_save_path = "./item_sim_dict.txt"
top_k = 10 #与item相似的前 k 个item
train = load_data(train_data_path)
u_items, i_users = get_uitems_iusers(train)
item_sim_dict = swing_model(u_items, i_users)
save_item_sims(item_sim_dict, top_k, item_sim_save_path)
image

@ruyiluo
Copy link
Collaborator

ruyiluo commented Dec 19, 2024

参考一下这和issue
#106

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

2 participants