Giter VIP home page Giter VIP logo

nrms-pytorch's Introduction

NRMS

Change

  • Use Range instead of Adam Optimizer
  • title encoder: branch for RoBERTa and ELETRA-Small
  • pytorch-lightning
    • tensorboard support
    • early stop

Benchmark

  • Use Taiwan PTT forum as data (Tranditional Chinese)
  • regard a comment as the user intereseted in the post
  • train on one Titan RTX
  • train until early stop

Data Description

  • articles.json
[{'id': 0, 'title': ['[', '公告', '] ', '八卦', '優文', '推薦', '申請']},
 {'id': 1, 'title': ['[', '公告', '] ', '八卦板', '政治文', '規範', '草案', '開始', '討論']},
 {'id': 2, 'title': ['[', '公告', '] ', '三月份', '置底', '閒聊', '文']},
 ...
 ]
  • users_list.json
[{'user_id': 0, 'push':[1, 2, 3]}, # 'push' is a list of articles.json id
{'user_id': 1, 'push':[2, 5, 6]},
...
]

Model

  • original: Use Word2Vec pretrained on Wiki-zh
  • Roberta: roberta-base in this
  • ELETRA: electra-smiall in this

training time

  • original(Adam): 1 hr
  • original(Ranger): 1 hr 4 min
  • Roberta(Ranger): 19 hr 46 min
  • ELETRA-Small(Ranger): 2hr 19min

Score on ValidationSet

AUROC

  • original(Adam): 0.86
  • original(Ranger): 0.89
  • Roberta(Ranger): 0.94
  • ELETRA-small(Ranger): 0.91

ndcg@5

  • original(Adam): 0.73
  • original(Ranger): 0.79
  • Roberta(Ranger): 0.88
  • ELETRA-small(Ranger): 0.81

ndcg@10

  • original(Adam): 0.67
  • original(Ranger): 0.72
  • Roberta(Ranger): 0.81
  • ELETRA-small(Ranger): 0.74

nrms-pytorch's People

Contributors

aqweteddy avatar

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.