Giter Club home page Giter Club logo

Comments (11)

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

从严谨的角度来讲,这里你提的问题是对的,确实D_v应该多乘上一个W。我这里因为目前处理的都是等权超边的超图,所以实现D_v的时候只对H的列做了sum,并没有乘上W。我会在下个版本修复这个bug,或者你也可以尝试提交pull request哦!

from deephypergraph.

liuzhh1998 avatar liuzhh1998 commented on June 12, 2024

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

预计一周内会发一个新版本,你还有没有一些其他的需求?我可以顺便都加上

from deephypergraph.

liuzhh1998 avatar liuzhh1998 commented on June 12, 2024

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

好,在实际的超图的抽象类里面,我已经增加了顶点权重,原本计划后续版本再把顶点权重放出来。我可以在下个版本提前增加顶点权重到无向超图类里面!

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

Reference in

Fix in 7786e2d .

hg = dhg.Hypergraph(5, [(0, 1, 2), (2, 3), (0, 4)], [2.0, 3.0, 4.0])
最新main分支中dhg中计算得到的D_v为 :
tensor([[6., 0., 0., 0., 0.],
[0., 2., 0., 0., 0.],
[0., 0., 5., 0., 0.],
[0., 0., 0., 3., 0.],
[0., 0., 0., 0., 4.]])

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

方便的话,可以star一下哦!

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

e17fc95 增加了 v_weight
在超图构建的时候传入参数v_weight即可初始化节点权重
W_v : https://deephypergraph.readthedocs.io/en/latest/api/dhg.html#dhg.Hypergraph.W_v
这个新特性预计这两天随着dhg 0.9.3 一起发布

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

已发布 0.9.3 https://pypi.org/project/dhg/
可以直接pip install dhg 来安装0.9.3啦

from deephypergraph.

liuzhh1998 avatar liuzhh1998 commented on June 12, 2024

from deephypergraph.

yifanfeng97 avatar yifanfeng97 commented on June 12, 2024

合并到 https://github.com/iMoonLab/DeepHypergraph/releases/tag/v0.9.3

from deephypergraph.

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.