Giter Site home page Giter Site logo

tdatoolbox's Introduction

tdatoolbox's People

Contributors

merylldindin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tdatoolbox's Issues

Missing imports

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

functions missing in 3Dshape tutorial

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!

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.