Coder Social home page Coder Social logo

Comments (3)

hexie1995 avatar hexie1995 commented on May 24, 2024

Also, I dont quite understand the example you have on your website:
G = np.random.beta(1, 1, [5,5,3])
this will give me a 5x5x3 array, and I am not sure exactly what is the structure of the edgelist here because it is not in the format of "i j t".

However, if i try to calculate the shortest path by generating G= np.random.beta(1,1,[50,50,3]), the algorithm is really fast to calculate that, usually finishes within two minutes. But when I try to do the exact same calculation of shortest path but with a different input network I created myself, and let tnet be created from edgelist, it is extremely slow. Could you walk me through as why this is the case and what can I do to improve this?

tnet = TemporalNetwork(from_edgelist=A_tr_list, nettype='bd', diagonal=True)

from teneto.

wiheto avatar wiheto commented on May 24, 2024

Known issue. #74. Whenever I have time to fix it, I will. All shortest paths outside of toy examples will take a long time to run cause of inefficient code when I tried to improve the algorithm.

Unfortunately, I am completely swamped with other obligations and have been unable to find a week in the last year where I can spend my free time fixing this as currently teneto is not supported under any research grant.

If critical, downgrade to the version where the algorithm runs quicker (I think 0.3.5 is the latest version), whenever betweenness centrality was added then the alg was made slower.

There are different network representations allowed. Array form and edgelist. See documentation.

from teneto.

wiheto avatar wiheto commented on May 24, 2024

It is 0.3.5 when the alg is quicker. So I recommend using that if you need it. Again, I am sorry. When I have time to fix it, I will.

from teneto.

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.