Comments (5)
@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.
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.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astrodendro.