Giter VIP home page Giter VIP logo

networkqit's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

networkqit's Issues

Questions about UECM3

I'm trying to implement the directed version of the Enhanced Configuration Model, and it's turning out to be trickier than I thought. I'm learning from reading your code here. Thanks for the library!

I have a question about this portion in the docs:

https://github.com/CarloNicolini/networkqit/blob/master/networkqit/graphtheory/models/MEModels.py#L198-L205

    9. Parameters bounds
        very complicated
        1. xi > 0
        2. yi > 0
        3. yi < 1
        4. 0 < xi yi < 1
    Reference:
        Squartini thesis page 126

I can't seem to find Squartini's thesis, but in https://arxiv.org/abs/1706.00230 (page 6) and https://iopscience.iop.org/article/10.1088/1367-2630/16/4/043022/meta (page 11) I see all those conditions except for 4.

I see here https://github.com/CarloNicolini/networkqit/blob/master/networkqit/graphtheory/models/MEModels.py#L212

        self.bounds = [(EPS ,None)] * self.N + [(EPS, 1-EPS)] * self.N

that you're enforcing the first 3 conditions with bounds, but I can't see if you're enforcing 4 anywhere.

Testing it out on the code from the README (btw you're not passing the method in the README, but it seems to be required):

A = nq.ring_of_custom_cliques([24,12,8])
M = nq.UECM3(N=len(A))
sol = M.fit(G=A, ftol=1E-9, method="MLE")

N = A.shape[0]
for (a, b) in zip(sol.x[:N], sol.x[N:]):
    if a*b >= 1:
        print(a, b, a*b)

Output:

615.1819615951695 0.002876463707218509 1.7695485858639957
583.5740399220408 0.0027044412700660617 1.5782417177043466
583.5740399220408 0.0027044412700748684 1.578241717709486
583.5740399220408 0.0027044412700617964 1.5782417177018575
583.5740399220408 0.00270444127010044 1.578241717724409
583.5740399220408 0.0027044412700721544 1.5782417177079022
583.5740399220408 0.002704441270058145 1.5782417176997265
583.5740399220408 0.0027044412700655634 1.5782417177040557
583.5740399220408 0.0027044412700939244 1.5782417177206065
583.5740399220408 0.002704441270043958 1.5782417176914474
583.5740399220408 0.0027044412700617847 1.5782417177018506
583.5740399220408 0.002704441270054217 1.5782417176974344
583.5740399220408 0.0027044412700793444 1.5782417177120982
583.5740399220408 0.0027044412700779623 1.5782417177112915
583.5740399220408 0.0027044412700883286 1.5782417177173411
583.5740399220408 0.0027044412700830624 1.5782417177142678
583.5740399220408 0.002704441270085959 1.5782417177159582
583.5740399220408 0.002704441270088149 1.5782417177172363
583.5740399220408 0.002704441270082641 1.5782417177140218
583.5740399220408 0.002704441270084962 1.5782417177153762
583.5740399217979 0.002704441270067596 1.578241717704585
583.5740399220408 0.002704441270085395 1.5782417177156292
583.5740399219059 0.00270444127007008 1.5782417177063268
615.1819615949613 0.0028764637072142807 1.7695485858607958

Btw, what does the 3 in "UECM3" refer to?

Thanks for any help!

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.