merylldindin / tdatoolbox Goto Github PK
View Code? Open in Web Editor NEWTopological Data Analysis toolkit, with examples
License: Apache License 2.0
Topological Data Analysis toolkit, with examples
License: Apache License 2.0
Persistence diagram does not appear from estimate_clusters function
Hi, thanks a lot for the code! I tried running ToMaTo.ipynb, but it failed because of a few missing imports. To get it to work, I modified the following:
clustering/clusters.py as follows:
def generate(self):
from sklearn.datasets import make_blobs, make_circles, make_moons
def estimate_density(self, nbins=100, graph=False):
from scipy.stats import gaussian_kde
x,y = self.x.T
den = gaussian_kde(self.x.T)
It works just fine with the above changes. Without the above changes, I got errors like the one below:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-0dd55453a1ad> in <module>
1 gen = ClusterGenerator(structure='anisotropy', randomize=45)
----> 2 clf = ToMaTo(*gen.generate())
3 _ = clf.estimate_clusters(graph=True)
/usr/local/share/notebooks/TDAtest/TdaToolbox-master/clustering/clusters.py in generate(self)
24 if self.structure == 'anisotropy':
25
---> 26 x,y = make_blobs(n_samples=self.n_samples, random_state=self.randomize)
27 vec = [[0.60834549, -0.63667341], [-0.40887718, 0.85253229]]
28 return np.dot(x, vec), y
NameError: name 'make_blobs' is not defined
The examples are all 2-dimensional data. Can you handle high-dimensional data?
Hi there, thank you for the nice toolbox. I was trying to run the 3D shape. However, there are some missing functions, e.g, functionize, build_landscapes. Could you please fix it? Thank you!
Instead of fit_predict, any thoughts on creating a predict method?
Could be interesting for new (test) data..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.