Coder Social home page Coder Social logo

Comments (3)

hyp1231 avatar hyp1231 commented on September 18, 2024

你好,我们在 General - ML-1M 里列出了全部的调参范围和最优参数。如果你希望复现最优结果,可以直接将此页面的 properties 和最优参数拼成一个新的 .yaml,以 SGL 举例:

# dataset config
field_separator: "\t"
seq_separator: " "
USER_ID_FIELD: user_id
ITEM_ID_FIELD: item_id
RATING_FIELD: rating
NEG_PREFIX: neg_
LABEL_FIELD: label
load_col:
    inter: [user_id, item_id, rating]
val_interval:
    rating: "[3,inf)"
unused_col: 
    inter: [rating]

# training and evaluation
epochs: 500
train_batch_size: 4096
valid_metric: MRR@10
eval_batch_size: 4096000

# best Hyper-parameter for SGL
learning_rate: 0.002
n_layers: 3
reg_weight: 0.0001
ssl_tau: 0.5
drop_ratio: 0.1
ssl_weight: 0.005

假设此文件名为 sgl_best.yaml,则可以将其放在根目录,并输下述命令运行

python run_recbole_gnn.py -m SGL -d ml-1m --config_files=sgl_best.yaml

from recbole-gnn.

zzyo-yu avatar zzyo-yu commented on September 18, 2024

非常感谢!我还有一个疑问,我在Amazon Book上的实验提示了显存溢出的错误(使用2060显卡,6G显存),您知道这个问题应该如何解决吗?

from recbole-gnn.

hyp1231 avatar hyp1231 commented on September 18, 2024

Book 数据集上好像确实是需要较大的显存的。

from recbole-gnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.