Giter VIP home page Giter VIP logo

Comments (3)

23pointsNorth avatar 23pointsNorth commented on May 20, 2024 1

Agreed, the initial curve is larger. I think the main github README + that docs section should have at least something basic like

import tadasets
import matplotlib.pyplot as plt
data_clean = tadasets.dsphere(d=1, n=100, noise=0.0)
data_noisy = tadasets.dsphere(d=1, n=100, noise=0.1)


print(f"The shape of the data is: {data_clean.shape}")

plt.scatter(data_clean[:,0], data_clean[:,1], label="clean data")
plt.scatter(data_noisy[:,0], data_noisy[:,1], label="noisy data")
plt.axis('equal')
plt.legend()
plt.show()


# Let's calculate the diagram 
import ripser
from persim import plot_diagrams

dgm_clean = ripser.ripser(data_clean)['dgms'][1]
dgm_noisy = ripser.ripser(data_noisy)['dgms'][1]

plot_diagrams([dgm_clean, dgm_noisy] , labels=['Clean $H_1$', 'Noisy $H_1$'], show=True)

from scikit-tda.

catanzaromj avatar catanzaromj commented on May 20, 2024 1

@galenseilis @23pointsNorth Please see the Tutorial section of the docs. Hopefully this will address some of your concerns.

from scikit-tda.

catanzaromj avatar catanzaromj commented on May 20, 2024 1

@galenseilis @23pointsNorth If you have suggestions for more broad tutorials that could be added here, please open an issue and we can address it. You can submit a PR as well if you'd like. Also please open issues/PRs on the other scikit-tda modules if you find their examples lacking as well. Thanks!

from scikit-tda.

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.