Giter VIP home page Giter VIP logo

Comments (5)

serenalotreck avatar serenalotreck commented on July 24, 2024 1

@keflavich My corpus only has 25 papers in it, how much more will I need to reduce it?

EDIT: oh wow @keflavich just realized I commented on the completely wrong repository! I'm having the same error in a totally different package that has the same function names, so sorry about that

from astrodendro.

bradenmacdonald avatar bradenmacdonald commented on July 24, 2024

Thanks for the report! I've been away but will look into this and come up with a fix or a more useful workaround when I get a chance.

from astrodendro.

bradenmacdonald avatar bradenmacdonald commented on July 24, 2024

I can confirm the problem with the following testcase:

    def test_deep_tree(self):
        """
        Test writing and reading a dendrogram with many levels to make sure 
        we're not getting recursion errors
        """
        # Construct a deep dendrogram - see test_recursion.py for more comments
        size = 4000 # number of leaves desired in the dendrogram
        data1 = np.arange(size*2) # first row
        data2 = np.arange(size*2) # second row
        data2[::2] += 2;
        d = Dendrogram(np.vstack((data1,data2)), verbose=False)
        # Now, save this to HDF5:
        d.to_hdf5(self.test_filename)
        d2 = Dendrogram()
        d2.from_hdf5(self.test_filename)

As you mentioned, raising the recursion limit does not help, because the Python interpreter will still crash due to resource exhaustion.

It appears a non-recursive newick building is needed. Shouldn't be too hard to implement. The method to be revised is this one.

from astrodendro.

serenalotreck avatar serenalotreck commented on July 24, 2024

@bradenmacdonald @keflavich This appears to still be an issue in tethne 0.8, has any progress been made towards a non-recursive solution?

from astrodendro.

keflavich avatar keflavich commented on July 24, 2024

I'm pretty sure no one has touched this, so at the moment, you're limited to just reducing the size.

from astrodendro.

Related Issues (5)

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.