Giter Site home page Giter Site logo

LOCABAL梯度下降式子疑问 about qrec HOT 5 CLOSED

coder-yu avatar coder-yu commented on July 20, 2024
LOCABAL梯度下降式子疑问

from qrec.

Comments (5)

Coder-Yu avatar Coder-Yu commented on July 20, 2024

好的,我会找时间看下,如果是我弄错了会修改的,谢谢反馈。

from qrec.

flyxu avatar flyxu commented on July 20, 2024

还有个bug,在qmath.py文件下pearson_sp这个函数第62行,return语句需要向前移动一格。

from qrec.

Coder-Yu avatar Coder-Yu commented on July 20, 2024

你好,我刚确认了一下,这个公式是我自己推导的。对比了一下nju的那篇文章,似乎是一致的?可能是我没有看仔细,你可以指出是哪个地方不一致吗?一般公式要是推导错误的话,运算时都是会溢出的。实测这个方法是可以收敛的。qmath的bug我已经修复了,谢谢。

from qrec.

flyxu avatar flyxu commented on July 20, 2024

image
主要是对U的求导那块,我看文章里给的迭代公式是按照我上面的写法,对于Ui,公式中有两项,分别代表Ui信任的朋友和信任Ui的朋友,也就是一个代表Ui的入度,一个代表出度,我看您只是计算了UI的出度,然后分别对Ui和Uk更新,这儿不知道是不是等价,所以这儿有点疑问。

from qrec.

Coder-Yu avatar Coder-Yu commented on July 20, 2024

文章里给的是批梯度优化的目标函数,我用的是SGD的,是等价的。

from qrec.

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.